Commit 91930f86 authored by Emmanuele Bassi's avatar Emmanuele Bassi

window: Use gtk_widget_send_focus_change()

Remove the original user of the GTK_HAS_FOCUS flags.

https://bugzilla.gnome.org/show_bug.cgi?id=593671
parent f04a7203
......@@ -5280,24 +5280,14 @@ do_focus_change (GtkWidget *widget,
{
GdkEvent *fevent = gdk_event_new (GDK_FOCUS_CHANGE);
g_object_ref (widget);
if (in)
GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS);
else
GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS);
fevent->focus_change.type = GDK_FOCUS_CHANGE;
fevent->focus_change.window = widget->window;
fevent->focus_change.in = in;
if (widget->window)
g_object_ref (widget->window);
fevent->focus_change.in = in;
gtk_widget_event (widget, fevent);
g_object_notify (G_OBJECT (widget), "has-focus");
g_object_unref (widget);
gtk_widget_send_focus_change (widget, fevent);
gdk_event_free (fevent);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment