Add function to obtain the action group of the browser

This commit is contained in:
Christian Dywan 2009-02-28 04:15:16 +01:00
parent 7ff1a016f4
commit 68f00fb31c
2 changed files with 23 additions and 0 deletions

View file

@ -4507,6 +4507,26 @@ midori_browser_activate_action (MidoriBrowser* browser,
g_signal_emit (browser, signals[ACTIVATE_ACTION], 0, name); 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: * midori_browser_set_current_uri:
* @browser: a #MidoriBrowser * @browser: a #MidoriBrowser

View file

@ -100,6 +100,9 @@ void
midori_browser_activate_action (MidoriBrowser* browser, midori_browser_activate_action (MidoriBrowser* browser,
const gchar* name); const gchar* name);
GtkActionGroup*
midori_browser_get_action_group (MidoriBrowser* browser);
void void
midori_browser_set_current_uri (MidoriBrowser* browser, midori_browser_set_current_uri (MidoriBrowser* browser,
const gchar* uri); const gchar* uri);