]> spindle.queued.net Git - midori/commitdiff
Implement midori_browser_get_settings in MidoriBrowser
authorChristian Dywan <christian@twotoasts.de>
Tue, 27 Apr 2010 21:36:14 +0000 (23:36 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 27 Apr 2010 21:36:14 +0000 (23:36 +0200)
midori/midori-browser.c
midori/midori-browser.h

index ac770d8bc949dfcf807746048b55436de9852e16..5ccda914574934a0254198c3eeb6f0ed625d5b1e 100644 (file)
@@ -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,
index d0bb97073755e8859ee31ae05747872211cad099..78323d32eb036a7a36f7d3454c78212f0f9c8932 100644 (file)
@@ -18,6 +18,7 @@
 #endif
 
 #include <katze/katze.h>
+#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__ */