midori-websettings

midori-websettings

Functions

Types and Values

Includes

#include <midori/midori.h>

Description

Functions

midori_web_settings_new ()

MidoriWebSettings *
midori_web_settings_new (void);

Creates a new MidoriWebSettings instance with default values.

You will typically want to assign this to a MidoriWebView or MidoriBrowser.

Returns

a new MidoriWebSettings.

[transfer full]


midori_web_settings_get_system_name ()

const gchar *
midori_web_settings_get_system_name (gchar **architecture,
                                     gchar **platform);

Determines the system name, architecture and platform. This function may write a NULL value to architecture .

Parameters

architecture

location of a string, or NULL.

[out][allow-none]

platform

location of a string, or NULL.

[out][allow-none]

Returns

a string

Since: 0.4.2


midori_web_settings_has_plugin_support ()

gboolean
midori_web_settings_has_plugin_support
                               (void);

Determines if Netscape plugins are supported.

Returns

TRUE if Netscape plugins can be used

Since: 0.4.4


midori_web_settings_skip_plugin ()

gboolean
midori_web_settings_skip_plugin (const gchar *path);

Tests if a plugin is redundant. WebKit sometimes provides duplicate listings of plugins due to library deployment miscellanea.

Parameters

path

the path to the plugin file

 

Returns

TRUE if the passed plugin shouldn't be shown in UI listings.

Since: 0.5.1


midori_web_settings_get_site_data_policy ()

MidoriSiteDataPolicy
midori_web_settings_get_site_data_policy
                               (MidoriWebSettings *settings,
                                const gchar *uri);

Tests if uri may store site data.

Parameters

settings

the MidoriWebSettings instance

 

uri

the URI for which to make the policy decision

 

Since: 0.4.4


midori_settings_new_full ()

MidoriWebSettings *
midori_settings_new_full (gchar ***extensions);

Creates a new MidoriWebSettings instance, loading configuration from disk according to preferences and invocation mode.

You will typically want to assign this to a MidoriWebView or MidoriBrowser.

Parameters

extensions

a pointer into which to write an array of names of extensions which preferences indicate should be activated, or NULL.

[out][allow-none]

Returns

a new MidoriWebSettings.

[transfer full]


midori_settings_save_to_file ()

gboolean
midori_settings_save_to_file (MidoriWebSettings *settings,
                              GObject *app,
                              const gchar *filename,
                              GError **error);

Saves a MidoriWebSettings instance to disk at the path given by filename .

Also saves the list of activated extensions from app .

Parameters

settings

a MidoriWebSettings instance to save

 

app

a MidoriApp instance.

[type MidoriApp][allow-none]

filename

the filename into which to save settings

 

error

return location for a GError, or NULL.

[out][allow-none]

Returns

TRUE if no error occurred; FALSE if an error occurred, in which case error will contain detailed information

Types and Values

enum MidoriNewTabType

Members

MIDORI_NEWTAB_BLANK_PAGE

   

MIDORI_NEWTAB_HOMEPAGE

   

MIDORI_NEWTAB_SEARCH

   

MIDORI_NEWTAB_SPEED_DIAL

   

MIDORI_NEWTAB_CUSTOM

   

enum MidoriSiteDataPolicy

Members

MIDORI_SITE_DATA_UNDETERMINED

   

MIDORI_SITE_DATA_BLOCK

   

MIDORI_SITE_DATA_ACCEPT

   

MIDORI_SITE_DATA_PRESERVE