Append the closed tabs items as a proper submenu.

This commit is contained in:
Przemek Sitek 2008-04-07 01:15:09 +02:00 committed by Christian Dywan
parent 00df47913d
commit e70925d064

View file

@ -865,6 +865,9 @@ 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);
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);
}
@ -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;
}