Implement midori_browser_get_settings in MidoriBrowser

This commit is contained in:
Christian Dywan 2010-04-27 23:36:14 +02:00
parent 64b6f6ce6d
commit 4576360ec3
2 changed files with 21 additions and 0 deletions

View file

@ -2771,6 +2771,23 @@ midori_browser_get_toolbar_actions (MidoriBrowser* browser)
return actions; 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 static gboolean
midori_browser_toolbar_popup_context_menu_cb (GtkWidget* widget, midori_browser_toolbar_popup_context_menu_cb (GtkWidget* widget,
gint x, gint x,

View file

@ -18,6 +18,7 @@
#endif #endif
#include <katze/katze.h> #include <katze/katze.h>
#include "midori-view.h"
G_BEGIN_DECLS G_BEGIN_DECLS
@ -151,6 +152,9 @@ midori_browser_quit (MidoriBrowser* browser);
const gchar** const gchar**
midori_browser_get_toolbar_actions (MidoriBrowser* browser); midori_browser_get_toolbar_actions (MidoriBrowser* browser);
MidoriWebSettings*
midori_browser_get_settings (MidoriBrowser* browser);
G_END_DECLS G_END_DECLS
#endif /* __MIDORI_BROWSER_H__ */ #endif /* __MIDORI_BROWSER_H__ */