From: Marco Pesenti Gritti <mpg@redhat.com> Date: Mon, 16 May 2005 10:17:22 +0000 (+0000) Subject: Select first item X-Git-Tag: EVINCE_0_3_1~22 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=1a1099e24c625b8ab7816f1ec1ff85cb8e2880d4;p=evince.git Select first item 2005-05-16 Marco Pesenti Gritti <mpg@redhat.com> * shell/ev-sidebar-links.c: (popup_menu_cb): Select first item --- diff --git a/ChangeLog b/ChangeLog index 878b8ac7..061cc133 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-05-16 Marco Pesenti Gritti <mpg@redhat.com> + + * shell/ev-sidebar-links.c: (popup_menu_cb): + + Select first item + 2005-05-16 Marco Pesenti Gritti <mpg@redhat.com> * lib/Makefile.am: diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c index e15e9ae2..fdd48441 100644 --- a/shell/ev-sidebar-links.c +++ b/shell/ev-sidebar-links.c @@ -280,10 +280,13 @@ build_popup_menu (EvSidebarLinks *sidebar) static void popup_menu_cb (GtkWidget *treeview, EvSidebarLinks *sidebar) { - gtk_menu_popup (build_popup_menu (sidebar), NULL, NULL, + GtkMenu *menu = build_popup_menu (sidebar); + + gtk_menu_popup (menu, NULL, NULL, ev_gui_menu_position_tree_selection, sidebar->priv->tree_view, 0, gtk_get_current_event_time ()); + gtk_menu_shell_select_first (GTK_MENU_SHELL (menu), FALSE); } static gboolean