aboutsummaryrefslogtreecommitdiff
path: root/src/idoentrymenuitem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idoentrymenuitem.c')
-rw-r--r--src/idoentrymenuitem.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/idoentrymenuitem.c b/src/idoentrymenuitem.c
index 7227201..251d108 100644
--- a/src/idoentrymenuitem.c
+++ b/src/idoentrymenuitem.c
@@ -174,13 +174,7 @@ ido_entry_menu_item_send_focus_change (GtkWidget *widget,
g_object_ref (widget);
if (in)
- {
- GTK_WIDGET_SET_FLAGS (widget, GTK_HAS_FOCUS);
- }
- else
- {
- GTK_WIDGET_UNSET_FLAGS (widget, GTK_HAS_FOCUS);
- }
+ gtk_widget_grab_focus (widget);
event->focus_change.type = GDK_FOCUS_CHANGE;
event->focus_change.window = g_object_ref (widget->window);