aboutsummaryrefslogtreecommitdiff
path: root/src/idoentrymenuitem.c
diff options
context:
space:
mode:
authorCody Russell <crussell@canonical.com>2010-09-10 16:26:16 -0500
committerCody Russell <crussell@canonical.com>2010-09-10 16:26:16 -0500
commit308c3076f469685fbb074b805476f22f6771ccf6 (patch)
tree5a8d7242873d8281ad4b98576469ccc8f4f513a2 /src/idoentrymenuitem.c
parent553318ddefdec6680706129f529df523a12e34af (diff)
downloadayatana-ido-308c3076f469685fbb074b805476f22f6771ccf6.tar.gz
ayatana-ido-308c3076f469685fbb074b805476f22f6771ccf6.tar.bz2
ayatana-ido-308c3076f469685fbb074b805476f22f6771ccf6.zip
When we grab focus, it seemed to also select all the text.
Diffstat (limited to 'src/idoentrymenuitem.c')
-rw-r--r--src/idoentrymenuitem.c13
1 files changed, 0 insertions, 13 deletions
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;