]> www.fi.muni.cz Git - evince.git/commitdiff
Select first item
authorMarco Pesenti Gritti <mpg@redhat.com>
Mon, 16 May 2005 10:17:22 +0000 (10:17 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Mon, 16 May 2005 10:17:22 +0000 (10:17 +0000)
2005-05-16  Marco Pesenti Gritti  <mpg@redhat.com>

        * shell/ev-sidebar-links.c: (popup_menu_cb):

        Select first item

ChangeLog
shell/ev-sidebar-links.c

index 878b8ac75d9517f41a7b5b6b80f568d591210d02..061cc1332ac0ffcc57dda36dc19b927754fa0dde 100644 (file)
--- 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:
index e15e9ae291ad20165ff5b32e55825fb7dc2100c9..fdd484416d02e507ad8e0be6b48a4f2debef2c32 100644 (file)
@@ -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