Set consistent flags on all properties of MidoriWebSettings

This commit is contained in:
Christian Dywan 2010-02-10 23:37:33 +01:00
parent 713091134f
commit 532e84ea4f

View file

@ -653,7 +653,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("The folder downloaded files are saved to"), _("The folder downloaded files are saved to"),
midori_get_download_dir (), midori_get_download_dir (),
#if WEBKIT_CHECK_VERSION (1, 1, 3) #if WEBKIT_CHECK_VERSION (1, 1, 3)
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
#else #else
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
#endif #endif
@ -675,7 +675,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Whether to ask for the destination folder when downloading a file"), _("Whether to ask for the destination folder when downloading a file"),
FALSE, FALSE,
#if WEBKIT_CHECK_VERSION (1, 1, 15) #if WEBKIT_CHECK_VERSION (1, 1, 15)
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
#else #else
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
#endif #endif
@ -695,7 +695,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Whether to show a notification when a transfer has been completed"), _("Whether to show a notification when a transfer has been completed"),
TRUE, TRUE,
#if WEBKIT_CHECK_VERSION (1, 1, 3) #if WEBKIT_CHECK_VERSION (1, 1, 3)
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
#else #else
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
#endif #endif
@ -780,7 +780,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Where to open new pages"), _("Where to open new pages"),
MIDORI_TYPE_NEW_PAGE, MIDORI_TYPE_NEW_PAGE,
MIDORI_NEW_PAGE_TAB, MIDORI_NEW_PAGE_TAB,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_OPEN_EXTERNAL_PAGES_IN, PROP_OPEN_EXTERNAL_PAGES_IN,
@ -790,7 +790,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Where to open externally opened pages"), _("Where to open externally opened pages"),
MIDORI_TYPE_NEW_PAGE, MIDORI_TYPE_NEW_PAGE,
MIDORI_NEW_PAGE_TAB, MIDORI_NEW_PAGE_TAB,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_MIDDLE_CLICK_OPENS_SELECTION, PROP_MIDDLE_CLICK_OPENS_SELECTION,
@ -826,7 +826,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Open popups in tabs"), _("Open popups in tabs"),
_("Whether to open popup windows in tabs"), _("Whether to open popup windows in tabs"),
TRUE, TRUE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); flags));
/* Override properties to localize them for preference proxies */ /* Override properties to localize them for preference proxies */
@ -912,7 +912,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Zoom Text and Images"), _("Zoom Text and Images"),
_("Whether to zoom text and images"), _("Whether to zoom text and images"),
FALSE, FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
/** /**
* MidoriWebSettings:find-while-typing: * MidoriWebSettings:find-while-typing:
@ -954,7 +954,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("What type of cookies to accept"), _("What type of cookies to accept"),
MIDORI_TYPE_ACCEPT_COOKIES, MIDORI_TYPE_ACCEPT_COOKIES,
MIDORI_ACCEPT_COOKIES_ALL, MIDORI_ACCEPT_COOKIES_ALL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
/** /**
* MidoriWebSettings:original-cookies-only: * MidoriWebSettings:original-cookies-only:
@ -970,7 +970,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Original cookies only"), _("Original cookies only"),
_("Accept cookies from the original website only"), _("Accept cookies from the original website only"),
FALSE, FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); flags));
g_object_class_install_property (gobject_class, g_object_class_install_property (gobject_class,
PROP_MAXIMUM_COOKIE_AGE, PROP_MAXIMUM_COOKIE_AGE,
@ -979,7 +979,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Maximum cookie age"), _("Maximum cookie age"),
_("The maximum number of days to save cookies for"), _("The maximum number of days to save cookies for"),
0, G_MAXINT, 30, 0, G_MAXINT, 30,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
@ -1015,7 +1015,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Remember last downloaded files"), _("Remember last downloaded files"),
_("Whether the last downloaded files are saved"), _("Whether the last downloaded files are saved"),
TRUE, TRUE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); flags));
@ -1026,7 +1026,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Proxy Server"), _("Proxy Server"),
_("The proxy server used for HTTP connections"), _("The proxy server used for HTTP connections"),
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
/** /**
* MidoriWebSettings:auto-detect-proxy: * MidoriWebSettings:auto-detect-proxy:
@ -1042,7 +1042,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Detect proxy server automatically"), _("Detect proxy server automatically"),
_("Whether to detect the proxy server automatically from the environment"), _("Whether to detect the proxy server automatically from the environment"),
TRUE, TRUE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
/** /**
* MidoriWebSettings:identify-as: * MidoriWebSettings:identify-as:
@ -1060,7 +1060,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("What to identify as to web pages"), _("What to identify as to web pages"),
MIDORI_TYPE_IDENTITY, MIDORI_TYPE_IDENTITY,
MIDORI_IDENT_MIDORI, MIDORI_IDENT_MIDORI,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
/** /**
* MidoriWebSettings:user-agent: * MidoriWebSettings:user-agent:
@ -1076,7 +1076,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Identification string"), _("Identification string"),
_("The application identification string"), _("The application identification string"),
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
/** /**
* MidoriWebSettings:preferred-languages: * MidoriWebSettings:preferred-languages:
@ -1092,7 +1092,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
_("Preferred languages"), _("Preferred languages"),
_("A comma separated list of languages preferred for rendering multilingual webpages, for example \"de\", \"ru,nl\" or \"en-us;q=1.0, fr-fr;q=0.667\""), _("A comma separated list of languages preferred for rendering multilingual webpages, for example \"de\", \"ru,nl\" or \"en-us;q=1.0, fr-fr;q=0.667\""),
NULL, NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); flags));
/** /**
* MidoriWebSettings:clear-private-data: * MidoriWebSettings:clear-private-data: