Don't show 'Add to speed dial' on blank pages
This commit is contained in:
parent
1fa9dec7b4
commit
441db87647
2 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@ _midori_browser_update_interface (MidoriBrowser* browser)
|
||||||
midori_view_can_go_forward (MIDORI_VIEW (view)));
|
midori_view_can_go_forward (MIDORI_VIEW (view)));
|
||||||
|
|
||||||
gtk_action_set_visible (_action_by_name (browser, "AddSpeedDial"),
|
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
|
/* Currently views that don't support source, don't support
|
||||||
saving either. If that changes, we need to think of something. */
|
saving either. If that changes, we need to think of something. */
|
||||||
_action_set_sensitive (browser, "SaveAs",
|
_action_set_sensitive (browser, "SaveAs",
|
||||||
|
|
|
@ -1332,7 +1332,7 @@ webkit_web_view_populate_popup_cb (WebKitWebView* web_view,
|
||||||
G_CALLBACK (midori_web_view_menu_action_activate_cb), view);
|
G_CALLBACK (midori_web_view_menu_action_activate_cb), view);
|
||||||
gtk_widget_show (menuitem);
|
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"));
|
menuitem = gtk_image_menu_item_new_with_mnemonic (_("Add to Speed _dial"));
|
||||||
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
||||||
|
|
Loading…
Reference in a new issue