forked from AuroraMiddleware/gtk
entry: Check gdk_event_get_coords return value
We use the x/y values later on to decide what to do with the event.
This commit is contained in:
parent
354eab70da
commit
9db76cebb4
@ -3525,8 +3525,6 @@ gtk_entry_event (GtkWidget *widget,
|
||||
gdouble x, y;
|
||||
gint i = 0;
|
||||
|
||||
gdk_event_get_coords (event, &x, &y);
|
||||
|
||||
if (gdk_event_get_event_type (event) == GDK_FOCUS_CHANGE)
|
||||
{
|
||||
gboolean focus_in;
|
||||
@ -3549,6 +3547,9 @@ gtk_entry_event (GtkWidget *widget,
|
||||
return GDK_EVENT_PROPAGATE;
|
||||
}
|
||||
|
||||
if (!gdk_event_get_coords (event, &x, &y))
|
||||
return GDK_EVENT_PROPAGATE;
|
||||
|
||||
for (i = 0; i < MAX_ICONS; i++)
|
||||
{
|
||||
GtkAllocation icon_alloc;
|
||||
|
Loading…
Reference in New Issue
Block a user