]> spindle.queued.net Git - midori/commitdiff
Hide panel if a panel was activated that's already shown
authorChristian Dywan <christian@twotoasts.de>
Mon, 21 Jun 2010 20:47:52 +0000 (22:47 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 21 Jun 2010 20:47:52 +0000 (22:47 +0200)
Also default hotkeys for History And Transfers.

midori/midori-panel.c
midori/sokoke.c

index 33618ae36b5c49b34ce389f99b4b5044ace6dd37..97b4351710c354ef85c38418320b1695e1c26998 100644 (file)
@@ -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);
index b71bb86e121d63f116dc4d42048d5bfe7fe1c471..c3f3d82613cd9fcfe5daeeab592e1c10538e83ae 100644 (file)
@@ -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 },