Implement midori_browser_get_settings in MidoriBrowser
This commit is contained in:
parent
64b6f6ce6d
commit
4576360ec3
2 changed files with 21 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue