diff options
Diffstat (limited to 'src/idoentrymenuitem.c')
-rw-r--r-- | src/idoentrymenuitem.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/idoentrymenuitem.c b/src/idoentrymenuitem.c index 5a1cb42..ff90544 100644 --- a/src/idoentrymenuitem.c +++ b/src/idoentrymenuitem.c @@ -171,18 +171,23 @@ static gboolean ido_entry_menu_item_button_press (GtkWidget *widget, GdkEventButton *event) { - GtkWidget *entry; + if (event->button == GDK_BUTTON_PRESS) + { + GtkWidget *entry; - entry = IDO_ENTRY_MENU_ITEM (widget)->priv->entry; + entry = IDO_ENTRY_MENU_ITEM (widget)->priv->entry; - if (entry->window != NULL) - { - gdk_window_raise (entry->window); - } + if (entry->window != NULL) + { + gdk_window_raise (entry->window); + } - if (!GTK_WIDGET_HAS_FOCUS (entry)) - { - gtk_widget_grab_focus (entry); + if (!GTK_WIDGET_HAS_FOCUS (entry)) + { + gtk_widget_grab_focus (entry); + } + + return TRUE; } return FALSE; |