From 4576360ec3d6b753607721472322e3ec24195395 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 27 Apr 2010 23:36:14 +0200 Subject: [PATCH] Implement midori_browser_get_settings in MidoriBrowser --- midori/midori-browser.c | 17 +++++++++++++++++ midori/midori-browser.h | 4 ++++ 2 files changed, 21 insertions(+) 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__ */ -- 2.39.5