From 1a1099e24c625b8ab7816f1ec1ff85cb8e2880d4 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 16 May 2005 10:17:22 +0000 Subject: [PATCH] Select first item 2005-05-16 Marco Pesenti Gritti * shell/ev-sidebar-links.c: (popup_menu_cb): Select first item --- ChangeLog | 6 ++++++ shell/ev-sidebar-links.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 878b8ac7..061cc133 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-05-16 Marco Pesenti Gritti + + * shell/ev-sidebar-links.c: (popup_menu_cb): + + Select first item + 2005-05-16 Marco Pesenti Gritti * 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 -- 2.43.5