]> spindle.queued.net Git - midori/commitdiff
Toggle sensitivity of Add Speed Dial/ Bookmark button
authorChristian Dywan <christian@twotoasts.de>
Mon, 19 Mar 2012 18:38:15 +0000 (19:38 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 19 Mar 2012 18:38:15 +0000 (19:38 +0100)
Rather than visibility.

Fixes: https://bugs.launchpad.net/midori/+bug/957382
midori/midori-browser.c

index 69d30ae925e0bf221f13e9a2e539cd90e253813f..9008f28e853d72349affd85e58018ee0abdb6c23 100644 (file)
@@ -302,8 +302,8 @@ _midori_browser_update_interface (MidoriBrowser* browser)
     _action_set_sensitive (browser, "Next",
         midori_view_get_next_page (view) != NULL);
 
-    _action_set_visible (browser, "AddSpeedDial", !midori_view_is_blank (view));
-    _action_set_visible (browser, "BookmarkAdd", !midori_view_is_blank (view));
+    _action_set_sensitive (browser, "AddSpeedDial", !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, "Print", midori_view_can_print (view));
     _action_set_sensitive (browser, "ZoomIn", midori_view_can_zoom_in (view));