Toggle sensitivity of Add Speed Dial/ Bookmark button

Rather than visibility.

Fixes: https://bugs.launchpad.net/midori/+bug/957382
This commit is contained in:
Christian Dywan 2012-03-19 19:38:15 +01:00
parent 0b16c9c95c
commit 70a894a9fc

View file

@ -302,8 +302,8 @@ _midori_browser_update_interface (MidoriBrowser* browser)
_action_set_sensitive (browser, "Next", _action_set_sensitive (browser, "Next",
midori_view_get_next_page (view) != NULL); midori_view_get_next_page (view) != NULL);
_action_set_visible (browser, "AddSpeedDial", !midori_view_is_blank (view)); _action_set_sensitive (browser, "AddSpeedDial", !midori_view_is_blank (view));
_action_set_visible (browser, "BookmarkAdd", !midori_view_is_blank (view)); _action_set_sensitive (browser, "BookmarkAdd", !midori_view_is_blank (view));
_action_set_sensitive (browser, "SaveAs", midori_view_can_save (view)); _action_set_sensitive (browser, "SaveAs", midori_view_can_save (view));
_action_set_sensitive (browser, "Print", midori_view_can_print (view)); _action_set_sensitive (browser, "Print", midori_view_can_print (view));
_action_set_sensitive (browser, "ZoomIn", midori_view_can_zoom_in (view)); _action_set_sensitive (browser, "ZoomIn", midori_view_can_zoom_in (view));