From e70925d064124798a9df643ba68a3df2da2eb9eb Mon Sep 17 00:00:00 2001 From: Przemek Sitek Date: Mon, 7 Apr 2008 01:15:09 +0200 Subject: [PATCH] Append the closed tabs items as a proper submenu. --- src/midori-browser.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/midori-browser.c b/src/midori-browser.c index fb084494..3c6ad406 100644 --- a/src/midori-browser.c +++ b/src/midori-browser.c @@ -865,8 +865,11 @@ midori_browser_menu_trash_activate_cb (GtkWidget* widget, menuitem = gtk_action_create_menu_item (action); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); - sokoke_widget_popup (widget, GTK_MENU (menu), NULL, - SOKOKE_MENU_POSITION_RIGHT); + if (GTK_IS_MENU_ITEM (widget)) + gtk_menu_item_set_submenu (GTK_MENU_ITEM (widget), menu); + else + sokoke_widget_popup (widget, GTK_MENU (menu), NULL, + SOKOKE_MENU_POSITION_RIGHT); } static void @@ -1687,7 +1690,7 @@ static gboolean midori_panel_close_cb (MidoriPanel* panel, MidoriBrowser* browser) { - config->panelShow = FALSE; + _action_set_active (browser, "Panel", FALSE); return FALSE; }