]> spindle.queued.net Git - midori/commitdiff
Add function to obtain the action group of the browser
authorChristian Dywan <christian@twotoasts.de>
Sat, 28 Feb 2009 03:15:16 +0000 (04:15 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 28 Feb 2009 03:15:16 +0000 (04:15 +0100)
midori/midori-browser.c
midori/midori-browser.h

index be6b919caf52caa07385e890bfd7964fb256ab6e..8758de1f64916de503e739e84e94a74ed29b69fb 100644 (file)
@@ -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
index cc2781b16c59e5e1a5e25aab498cf5b48f6f333f..92a61779785ea5914e74e1b58318611060f14478 100644 (file)
@@ -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);