Add midori_browser_set_action_visible method

This commit is contained in:
Christian Dywan 2010-10-13 23:22:54 +02:00
parent f3c519d715
commit 80ff8ac0f0
2 changed files with 16 additions and 0 deletions

View 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

View 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);