Add midori_browser_set_action_visible method
This commit is contained in:
parent
f3c519d715
commit
80ff8ac0f0
2 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue