From: Christian Dywan Date: Mon, 21 Jun 2010 20:47:52 +0000 (+0200) Subject: Hide panel if a panel was activated that's already shown X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e200f2cb3ead57f370615ddfec71d16e1184906d;p=midori Hide panel if a panel was activated that's already shown Also default hotkeys for History And Transfers. --- diff --git a/midori/midori-panel.c b/midori/midori-panel.c index 33618ae3..97b43517 100644 --- a/midori/midori-panel.c +++ b/midori/midori-panel.c @@ -712,6 +712,11 @@ midori_panel_action_activate_cb (GtkRadioAction* action, && gtk_radio_action_get_current_value (action) == katze_object_get_int (action, "value")) midori_panel_detach_page (panel, n); + else if (gtk_radio_action_get_current_value (action) + == katze_object_get_int (action, "value") + && gtk_widget_get_visible (GTK_WIDGET (panel)) + && midori_panel_get_current_page (panel) == n) + gtk_widget_hide (GTK_WIDGET (panel)); else { midori_panel_set_current_page (panel, n); diff --git a/midori/sokoke.c b/midori/sokoke.c index b71bb86e..c3f3d826 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -1289,11 +1289,11 @@ sokoke_register_stock_items (void) { STOCK_BOOKMARK_ADD, N_("Add Boo_kmark"), 0, 0, GTK_STOCK_ADD }, { STOCK_CONSOLE, N_("_Console"), 0, 0, GTK_STOCK_DIALOG_WARNING }, { STOCK_EXTENSIONS, N_("_Extensions"), 0, 0, GTK_STOCK_CONVERT }, - { STOCK_HISTORY, N_("_History"), 0, 0, GTK_STOCK_SORT_ASCENDING }, + { STOCK_HISTORY, N_("_History"), 0, GDK_H, GTK_STOCK_SORT_ASCENDING }, { STOCK_HOMEPAGE, N_("_Homepage"), 0, 0, GTK_STOCK_HOME }, { STOCK_SCRIPTS, N_("_Userscripts"), 0, 0, GTK_STOCK_EXECUTE }, { STOCK_TAB_NEW, N_("New _Tab"), 0, 0, GTK_STOCK_ADD }, - { STOCK_TRANSFERS, N_("_Transfers"), 0, 0, GTK_STOCK_SAVE }, + { STOCK_TRANSFERS, N_("_Transfers"), 0, GDK_J, GTK_STOCK_SAVE }, { STOCK_PLUGINS, N_("Netscape p_lugins"), 0, 0, GTK_STOCK_CONVERT }, { STOCK_USER_TRASH, N_("_Closed Tabs"), 0, 0, "gtk-undo-ltr" }, { STOCK_WINDOW_NEW, N_("New _Window"), 0, 0, GTK_STOCK_ADD },