Add function to obtain the action group of the browser
This commit is contained in:
parent
7ff1a016f4
commit
68f00fb31c
2 changed files with 23 additions and 0 deletions
|
@ -4507,6 +4507,26 @@ midori_browser_activate_action (MidoriBrowser* browser,
|
|||
g_signal_emit (browser, signals[ACTIVATE_ACTION], 0, name);
|
||||
}
|
||||
|
||||
/**
|
||||
* midori_browser_get_action_group:
|
||||
* @browser: a #MidoriBrowser
|
||||
*
|
||||
* Retrieves the action group holding all actions used
|
||||
* by the browser. It allows obtaining individual
|
||||
* actions and adding new actions.
|
||||
*
|
||||
* Return value: the action group of the browser
|
||||
*
|
||||
* Since: 0.1.4
|
||||
**/
|
||||
GtkActionGroup*
|
||||
midori_browser_get_action_group (MidoriBrowser* browser)
|
||||
{
|
||||
g_return_val_if_fail (MIDORI_IS_BROWSER (browser), NULL);
|
||||
|
||||
return browser->action_group;
|
||||
}
|
||||
|
||||
/**
|
||||
* midori_browser_set_current_uri:
|
||||
* @browser: a #MidoriBrowser
|
||||
|
|
|
@ -100,6 +100,9 @@ void
|
|||
midori_browser_activate_action (MidoriBrowser* browser,
|
||||
const gchar* name);
|
||||
|
||||
GtkActionGroup*
|
||||
midori_browser_get_action_group (MidoriBrowser* browser);
|
||||
|
||||
void
|
||||
midori_browser_set_current_uri (MidoriBrowser* browser,
|
||||
const gchar* uri);
|
||||
|
|
Loading…
Reference in a new issue