forked from AuroraMiddleware/gtk
popover: Initialize some locals
gtk_popover_get_pointing_to does not fill the given rect in every case.
This commit is contained in:
parent
8c0e5adaab
commit
619ee3797d
@ -813,7 +813,7 @@ gtk_popover_get_gap_coords (GtkPopover *popover,
|
|||||||
{
|
{
|
||||||
GtkWidget *widget = GTK_WIDGET (popover);
|
GtkWidget *widget = GTK_WIDGET (popover);
|
||||||
GtkPopoverPrivate *priv = popover->priv;
|
GtkPopoverPrivate *priv = popover->priv;
|
||||||
GdkRectangle rect;
|
GdkRectangle rect = { 0 };
|
||||||
gint base, tip, tip_pos;
|
gint base, tip, tip_pos;
|
||||||
gint initial_x, initial_y;
|
gint initial_x, initial_y;
|
||||||
gint tip_x, tip_y;
|
gint tip_x, tip_y;
|
||||||
@ -1104,7 +1104,7 @@ gtk_popover_update_position (GtkPopover *popover)
|
|||||||
GtkWidget *widget = GTK_WIDGET (popover);
|
GtkWidget *widget = GTK_WIDGET (popover);
|
||||||
GtkAllocation window_alloc;
|
GtkAllocation window_alloc;
|
||||||
GtkBorder window_shadow;
|
GtkBorder window_shadow;
|
||||||
GdkRectangle rect;
|
GdkRectangle rect = { 0 };
|
||||||
GtkRequisition req;
|
GtkRequisition req;
|
||||||
GtkPositionType pos;
|
GtkPositionType pos;
|
||||||
gint overshoot[4];
|
gint overshoot[4];
|
||||||
|
Loading…
Reference in New Issue
Block a user