]> spindle.queued.net Git - midori/commitdiff
Add midori_browser_set_action_visible method
authorChristian Dywan <christian@twotoasts.de>
Wed, 13 Oct 2010 21:22:54 +0000 (23:22 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 13 Oct 2010 21:22:54 +0000 (23:22 +0200)
midori/midori-browser.c
midori/midori-browser.h

index f35a10fce1d6bd232e064af80ce900a404768e77..5e777fd54500cbf24a8b81692f1ff0d325bb9651 100644 (file)
@@ -6777,6 +6777,17 @@ midori_browser_activate_action (MidoriBrowser* browser,
     g_signal_emit (browser, signals[ACTIVATE_ACTION], 0, name);
 }
 
+void
+midori_browser_set_action_visible (MidoriBrowser* browser,
+                                   const gchar*   name,
+                                   gboolean       visible)
+{
+    g_return_if_fail (MIDORI_IS_BROWSER (browser));
+    g_return_if_fail (name != NULL);
+
+    _action_set_visible (browser, name, visible);
+}
+
 /**
  * midori_browser_get_action_group:
  * @browser: a #MidoriBrowser
index 7b0d98c0d314cf3bc787dfe36010855a76cd9af8..2b07dd0577e66a275aa54a59b3be5e1f40de0d03 100644 (file)
@@ -106,6 +106,11 @@ void
 midori_browser_activate_action        (MidoriBrowser*     browser,
                                        const gchar*       name);
 
+void
+midori_browser_set_action_visible     (MidoriBrowser*     browser,
+                                       const gchar*       name,
+                                       gboolean           visible);
+
 GtkActionGroup*
 midori_browser_get_action_group       (MidoriBrowser*     browser);