From 80ff8ac0f0d3c7389bff28aa24372b6ff740ae94 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 13 Oct 2010 23:22:54 +0200 Subject: [PATCH] Add midori_browser_set_action_visible method --- midori/midori-browser.c | 11 +++++++++++ midori/midori-browser.h | 5 +++++ 2 files changed, 16 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index f35a10fc..5e777fd5 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 7b0d98c0..2b07dd05 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);