[Xfce4-commits] <midori:master> Add midori_browser_set_action_visible method

Christian Dywan noreply at xfce.org
Thu Oct 14 00:38:03 CEST 2010


Updating branch refs/heads/master
         to 80ff8ac0f0d3c7389bff28aa24372b6ff740ae94 (commit)
       from f3c519d7155940d932260cccfec645e785f28968 (commit)

commit 80ff8ac0f0d3c7389bff28aa24372b6ff740ae94
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Oct 13 23:22:54 2010 +0200

    Add midori_browser_set_action_visible method

 midori/midori-browser.c |   11 +++++++++++
 midori/midori-browser.h |    5 +++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index f35a10f..5e777fd 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -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
diff --git a/midori/midori-browser.h b/midori/midori-browser.h
index 7b0d98c..2b07dd0 100644
--- a/midori/midori-browser.h
+++ b/midori/midori-browser.h
@@ -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);
 



More information about the Xfce4-commits mailing list