From 308c3076f469685fbb074b805476f22f6771ccf6 Mon Sep 17 00:00:00 2001 From: Cody Russell Date: Fri, 10 Sep 2010 16:26:16 -0500 Subject: When we grab focus, it seemed to also select all the text. --- src/idoentrymenuitem.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src') diff --git a/src/idoentrymenuitem.c b/src/idoentrymenuitem.c index 251d108..b68c18f 100644 --- a/src/idoentrymenuitem.c +++ b/src/idoentrymenuitem.c @@ -145,16 +145,6 @@ ido_entry_menu_item_key_press (GtkWidget *widget, gtk_widget_event (entry, ((GdkEvent *)(void*)(event))); - if (entry->window != NULL) - { - gdk_window_raise (entry->window); - } - - if (!gtk_widget_has_focus (entry)) - { - gtk_widget_grab_focus (entry); - } - /* We've handled the event, but if the key was GDK_Return * we still want to forward the event up to the menu shell * to ensure that the menuitem receives the activate signal. @@ -173,9 +163,6 @@ ido_entry_menu_item_send_focus_change (GtkWidget *widget, g_object_ref (widget); - if (in) - gtk_widget_grab_focus (widget); - event->focus_change.type = GDK_FOCUS_CHANGE; event->focus_change.window = g_object_ref (widget->window); event->focus_change.in = in; -- cgit v1.2.3