]> spindle.queued.net Git - midori/commitdiff
Don't show 'Add to speed dial' on blank pages
authorChristian Dywan <christian@twotoasts.de>
Fri, 22 May 2009 22:07:52 +0000 (00:07 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 22 May 2009 22:16:39 +0000 (00:16 +0200)
midori/midori-browser.c
midori/midori-view.c

index 8b70e8d89b50b9b343f8cb970e1cf33034de14ae..6a4c38f8302fea0c0d44a01cd35af46654b7bcff 100644 (file)
@@ -262,7 +262,7 @@ _midori_browser_update_interface (MidoriBrowser* browser)
         midori_view_can_go_forward (MIDORI_VIEW (view)));
 
     gtk_action_set_visible (_action_by_name (browser, "AddSpeedDial"),
-        browser->speed_dial_in_new_tabs);
+        browser->speed_dial_in_new_tabs && !midori_view_is_blank (MIDORI_VIEW (view)));
     /* Currently views that don't support source, don't support
        saving either. If that changes, we need to think of something. */
     _action_set_sensitive (browser, "SaveAs",
index 5619378ca2dc6f1d1f54cff147427472e64aa25d..a7bd4133f2b0d59ebbfe9fd6faba51196bfc1b6f 100644 (file)
@@ -1332,7 +1332,7 @@ webkit_web_view_populate_popup_cb (WebKitWebView* web_view,
             G_CALLBACK (midori_web_view_menu_action_activate_cb), view);
         gtk_widget_show (menuitem);
 
-        if (view->speed_dial_in_new_tabs)
+        if (view->speed_dial_in_new_tabs && !midori_view_is_blank (view))
         {
             menuitem = gtk_image_menu_item_new_with_mnemonic (_("Add to Speed _dial"));
             gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);