Commit 72cd654a authored by Germán Poo-Caamaño's avatar Germán Poo-Caamaño

misc: Set gravity on popup menu in search box

Previously the menu would popup on the cursor position,
however, it seems better to show it just below the icon,
close to the entry border.
parent f1db779f
......@@ -353,8 +353,10 @@ entry_icon_release_cb (GtkEntry *entry,
ev_search_box_entry_populate_popup (box, menu);
gtk_widget_show (menu);
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL,
event->button, event->time);
gtk_menu_popup_at_widget (GTK_MENU (menu), GTK_WIDGET (entry),
(GdkEvent *)event);
static void
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