From: Christian Dywan Date: Tue, 27 Apr 2010 21:36:14 +0000 (+0200) Subject: Implement midori_browser_get_settings in MidoriBrowser X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4576360ec3d6b753607721472322e3ec24195395;p=midori Implement midori_browser_get_settings in MidoriBrowser --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index ac770d8b..5ccda914 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -2771,6 +2771,23 @@ midori_browser_get_toolbar_actions (MidoriBrowser* browser) return actions; } +/** + * midori_browser_get_settings: + * + * Retrieves the settings instance of the browser. + * + * Return value: a #MidoriWebSettings instance + * + * Since: 0.2.5 + **/ +MidoriWebSettings* +midori_browser_get_settings (MidoriBrowser* browser) +{ + g_return_val_if_fail (MIDORI_IS_BROWSER (browser), NULL); + + return browser->settings; +} + static gboolean midori_browser_toolbar_popup_context_menu_cb (GtkWidget* widget, gint x, diff --git a/midori/midori-browser.h b/midori/midori-browser.h index d0bb9707..78323d32 100644 --- a/midori/midori-browser.h +++ b/midori/midori-browser.h @@ -18,6 +18,7 @@ #endif #include +#include "midori-view.h" G_BEGIN_DECLS @@ -151,6 +152,9 @@ midori_browser_quit (MidoriBrowser* browser); const gchar** midori_browser_get_toolbar_actions (MidoriBrowser* browser); +MidoriWebSettings* +midori_browser_get_settings (MidoriBrowser* browser); + G_END_DECLS #endif /* __MIDORI_BROWSER_H__ */