Don't show 'Add to speed dial' on blank pages

This commit is contained in:
Christian Dywan 2009-05-23 00:07:52 +02:00
parent 1fa9dec7b4
commit 441db87647
2 changed files with 2 additions and 2 deletions

View 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",

View 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);