]> spindle.queued.net Git - midori/commitdiff
Make property strings static to save some memory
authorNick Schermer <nick@xfce.org>
Fri, 16 Jan 2009 04:19:43 +0000 (05:19 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 16 Jan 2009 04:19:43 +0000 (05:19 +0100)
midori/compat.h
midori/midori-app.c
midori/midori-browser.c
midori/midori-extension.c
midori/midori-locationaction.c
midori/midori-panel.c
midori/midori-preferences.c
midori/midori-searchaction.c
midori/midori-view.c
midori/midori-websettings.c

index 68cda3605c73826c59bf2ab72ec9af79203c1eb9..42789bf6d375f68c8a94f9b59b7bcc86d5611132 100644 (file)
 #endif
 
 #include <glib.h>
+
+#if !GLIB_CHECK_VERSION (2, 14, 0)
+    #define G_PARAM_STATIC_STRINGS \
+    (G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)
+#endif
+
 #if GLIB_CHECK_VERSION (2, 16, 0)
     #include <gio/gio.h>
 #endif
index 8ce5d205e18a2e74e4e5c6ae620b151b9b51097d..4d3eb4d731977e77f2afc5fb57d00da79f06b6f7 100644 (file)
@@ -211,7 +211,7 @@ midori_app_class_init (MidoriAppClass* class)
                                      "Settings",
                                      "The associated settings",
                                      MIDORI_TYPE_WEB_SETTINGS,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_BOOKMARKS,
@@ -220,7 +220,7 @@ midori_app_class_init (MidoriAppClass* class)
                                      "Bookmarks",
                                      "The bookmarks folder, containing all bookmarks",
                                      KATZE_TYPE_ARRAY,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_TRASH,
@@ -229,7 +229,7 @@ midori_app_class_init (MidoriAppClass* class)
                                      "Trash",
                                      "The trash, collecting recently closed tabs and windows",
                                      KATZE_TYPE_ARRAY,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_SEARCH_ENGINES,
@@ -238,7 +238,7 @@ midori_app_class_init (MidoriAppClass* class)
                                      "Search Engines",
                                      "The list of search engines",
                                      KATZE_TYPE_ARRAY,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_HISTORY,
@@ -247,7 +247,7 @@ midori_app_class_init (MidoriAppClass* class)
                                      "History",
                                      "The list of history items",
                                      KATZE_TYPE_ARRAY,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_EXTENSIONS,
@@ -256,7 +256,7 @@ midori_app_class_init (MidoriAppClass* class)
                                      "Extensions",
                                      "The list of extensions",
                                      KATZE_TYPE_ARRAY,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_BROWSER,
@@ -265,7 +265,7 @@ midori_app_class_init (MidoriAppClass* class)
                                      "Browser",
                                      "The current browser",
                                      MIDORI_TYPE_BROWSER,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_BROWSER_COUNT,
@@ -274,7 +274,7 @@ midori_app_class_init (MidoriAppClass* class)
                                      "Browser Count",
                                      "The current number of browsers",
                                      0, G_MAXUINT, 0,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 }
 
 #if HAVE_UNIQUE
index 37f7413b9a47dd5b40af67748cf0ac829a52d1aa..0f74fc17bf8071dd8907a4de24698dabd6d99c54 100644 (file)
@@ -1078,7 +1078,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
     gobject_class->set_property = midori_browser_set_property;
     gobject_class->get_property = midori_browser_get_property;
 
-    flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT;
+    flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS;
 
     g_object_class_install_property (gobject_class,
                                      PROP_MENUBAR,
@@ -1087,7 +1087,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "Menubar",
                                      "The menubar",
                                      GTK_TYPE_MENU_BAR,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_NAVIGATIONBAR,
@@ -1096,7 +1096,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "Navigationbar",
                                      "The navigationbar",
                                      GTK_TYPE_TOOLBAR,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_NOTEBOOK,
@@ -1105,7 +1105,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "Notebook",
                                      "The notebook containing the views",
                                      GTK_TYPE_NOTEBOOK,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_PANEL,
@@ -1114,7 +1114,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "Panel",
                                      "The side panel embedded in the browser",
                                      MIDORI_TYPE_PANEL,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_URI,
@@ -1123,7 +1123,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "URI",
                                      "The current URI",
                                      "about:blank",
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_TAB,
@@ -1132,7 +1132,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "Tab",
                                      "The current tab",
                                      GTK_TYPE_WIDGET,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_LOAD_STATUS,
@@ -1142,7 +1142,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "The current load status",
                                      MIDORI_TYPE_LOAD_STATUS,
                                      MIDORI_LOAD_FINISHED,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_STATUSBAR,
@@ -1151,7 +1151,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "Statusbar",
                                      "The statusbar",
                                      GTK_TYPE_STATUSBAR,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     /**
     * MidoriBrowser:statusbar-text:
@@ -1190,7 +1190,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "Settings",
                                      "The associated settings",
                                      MIDORI_TYPE_WEB_SETTINGS,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     /**
     * MidoriBrowser:bookmarks:
@@ -1207,7 +1207,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "Bookmarks",
                                      "The bookmarks folder, containing all bookmarks",
                                      KATZE_TYPE_ARRAY,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     /**
     * MidoriBrowser:trash:
@@ -1226,7 +1226,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "Trash",
                                      "The trash, collecting recently closed tabs and windows",
                                      KATZE_TYPE_ARRAY,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     /**
     * MidoriBrowser:search-engines:
@@ -1243,7 +1243,7 @@ midori_browser_class_init (MidoriBrowserClass* class)
                                      "Search Engines",
                                      "The list of search engines to be used for web search",
                                      KATZE_TYPE_ARRAY,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     /**
     * MidoriBrowser:history:
index dc54075466100c54ce9997876596e377a2ba4817..22eee82040b63a20a671c95a8201d8d8052e1275 100644 (file)
@@ -99,7 +99,7 @@ midori_extension_class_init (MidoriExtensionClass* class)
     gobject_class->set_property = midori_extension_set_property;
     gobject_class->get_property = midori_extension_get_property;
 
-    flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT;
+    flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS;
 
     g_object_class_install_property (gobject_class,
                                      PROP_NAME,
index 631cfc74298a8d027c674b0ecef6a78b8f173915..6c966b48941037fbcd92343e272b919c7d787756 100644 (file)
@@ -168,7 +168,7 @@ midori_location_action_class_init (MidoriLocationActionClass* class)
                                      "Progress",
                                      "The current progress of the action",
                                      0.0, 1.0, 0.0,
-                                     G_PARAM_WRITABLE));
+                                     G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_SECONDARY_ICON,
@@ -177,7 +177,7 @@ midori_location_action_class_init (MidoriLocationActionClass* class)
                                      "Secondary",
                                      "The stock ID of the secondary icon",
                                      NULL,
-                                     G_PARAM_WRITABLE));
+                                     G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
index 160266b900271dd2a7b9b7991b8cbc39eabe0198..de821617e0f7b4955f31151b8747fbed172175dc 100644 (file)
@@ -118,7 +118,7 @@ midori_panel_class_init (MidoriPanelClass* class)
 
     class->close = midori_panel_close;
 
-    flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT;
+    flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS;
 
     g_object_class_install_property (gobject_class,
                                      PROP_SHADOW_TYPE,
@@ -137,7 +137,7 @@ midori_panel_class_init (MidoriPanelClass* class)
                                      "Menu",
                                      "Menu to hold panel items",
                                      GTK_TYPE_MENU,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_PAGE,
index ca94413010ea5754ab55c75149539907a1e98c23..8d85ca96fd9447ee6b676a4092844338464a7c25 100644 (file)
@@ -70,7 +70,7 @@ midori_preferences_class_init (MidoriPreferencesClass* class)
                                      "Settings",
                                      "Settings instance to provide properties",
                                      MIDORI_TYPE_WEB_SETTINGS,
-                                     G_PARAM_WRITABLE));
+                                     G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
index 3d8d8ded039eaa809d6bd52e2f5227e0862217d2..a9b1e814f12f8381a4d931a475c8597a1188021e 100644 (file)
@@ -136,7 +136,7 @@ midori_search_action_class_init (MidoriSearchActionClass* class)
                                      "Search Engines",
                                      "The list of search engines",
                                      KATZE_TYPE_ARRAY,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_CURRENT_ITEM,
@@ -145,7 +145,7 @@ midori_search_action_class_init (MidoriSearchActionClass* class)
                                      "Current Item",
                                      "The currently selected item",
                                      KATZE_TYPE_ITEM,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_TEXT,
@@ -154,7 +154,7 @@ midori_search_action_class_init (MidoriSearchActionClass* class)
                                      "Text",
                                      "The current text typed in the entry",
                                      NULL,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_DIALOG,
@@ -163,7 +163,7 @@ midori_search_action_class_init (MidoriSearchActionClass* class)
                                      "Dialog",
                                      "A dialog to manage search engines",
                                      GTK_TYPE_DIALOG,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
index dede4dabe614011a4e58d961f96f0183094bf23c..74733e8a258764bd44c48840ef70df47fbced259 100644 (file)
@@ -305,7 +305,7 @@ midori_view_class_init (MidoriViewClass* class)
     gobject_class->set_property = midori_view_set_property;
     gobject_class->get_property = midori_view_get_property;
 
-    flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT;
+    flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS;
 
     g_object_class_install_property (gobject_class,
                                      PROP_URI,
@@ -314,7 +314,7 @@ midori_view_class_init (MidoriViewClass* class)
                                      "Uri",
                                      "The URI of the currently loaded page",
                                      "about:blank",
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_TITLE,
@@ -323,7 +323,7 @@ midori_view_class_init (MidoriViewClass* class)
                                      "Title",
                                      "The title of the currently loaded page",
                                      NULL,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     /**
     * MidoriView:mime-type:
@@ -339,7 +339,7 @@ midori_view_class_init (MidoriViewClass* class)
                                      "MIME Type",
                                      "The MIME type of the currently loaded page",
                                      "text/html",
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_ICON,
@@ -348,7 +348,7 @@ midori_view_class_init (MidoriViewClass* class)
                                      "Icon",
                                      "The icon of the view",
                                      GDK_TYPE_PIXBUF,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_LOAD_STATUS,
@@ -358,7 +358,7 @@ midori_view_class_init (MidoriViewClass* class)
                                      "The current loading status",
                                      MIDORI_TYPE_LOAD_STATUS,
                                      MIDORI_LOAD_FINISHED,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_PROGRESS,
@@ -367,7 +367,7 @@ midori_view_class_init (MidoriViewClass* class)
                                      "Progress",
                                      "The current loading progress",
                                      0.0, 1.0, 0.0,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_ZOOM_LEVEL,
@@ -378,7 +378,7 @@ midori_view_class_init (MidoriViewClass* class)
                                      G_MINFLOAT,
                                      G_MAXFLOAT,
                                      1.0f,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     /* g_object_class_install_property (gobject_class,
                                      PROP_NEWS_FEEDS,
@@ -387,7 +387,7 @@ midori_view_class_init (MidoriViewClass* class)
                                      "News Feeds",
                                      "The list of available news feeds",
                                      KATZE_TYPE_ARRAY,
-                                     G_PARAM_READWRITE)); */
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); */
 
     g_object_class_install_property (gobject_class,
                                      PROP_STATUSBAR_TEXT,
@@ -396,7 +396,7 @@ midori_view_class_init (MidoriViewClass* class)
                                      "Statusbar Text",
                                      "The text displayed in the statusbar",
                                      "",
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_SETTINGS,
index b803cae408d17abcf76d5199b97a638dafbe8897..1ddf110a914684c312fcb0bd499f6a094244cfed 100644 (file)
@@ -274,7 +274,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
     gobject_class->set_property = midori_web_settings_set_property;
     gobject_class->get_property = midori_web_settings_get_property;
 
-    flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT;
+    flags = G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS;
 
     g_object_class_install_property (gobject_class,
                                      PROP_REMEMBER_LAST_WINDOW_SIZE,
@@ -516,8 +516,8 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      _("Where to open new pages"),
                                      MIDORI_TYPE_NEW_PAGE,
                                      MIDORI_NEW_PAGE_TAB,
-    g_signal_lookup ("create-web-view", WEBKIT_TYPE_WEB_VIEW)
-        ? G_PARAM_READWRITE : G_PARAM_READABLE));
+    (g_signal_lookup ("create-web-view", WEBKIT_TYPE_WEB_VIEW)
+        ? G_PARAM_READWRITE : G_PARAM_READABLE) | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_OPEN_EXTERNAL_PAGES_IN,
@@ -528,9 +528,9 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      MIDORI_TYPE_NEW_PAGE,
                                      MIDORI_NEW_PAGE_TAB,
     #if HAVE_UNIQUE
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
     #else
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
     #endif
 
     g_object_class_install_property (gobject_class,
@@ -567,7 +567,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      _("Open popups in tabs"),
                                      _("Whether to open popup windows in tabs"),
                                      TRUE,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
 
     if (!g_object_class_find_property (gobject_class, "enforce-96-dpi"))
@@ -585,7 +585,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      "Enforce 96 DPI",
                                      "Whether to enforce a resolution of 96 DPI",
                                      FALSE,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     if (!g_object_class_find_property (gobject_class, "enable-developer-extras"))
     /**
@@ -602,7 +602,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      "Enable Developer Extras",
                                      "Whether to enable extra developer tools",
                                      FALSE,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     if (!g_object_class_find_property (gobject_class, "zoom-text-and-images"))
     /**
@@ -619,8 +619,9 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      _("Zoom Text and Images"),
                                      _("Whether to zoom text and images"),
                                      FALSE,
-    g_object_class_find_property (g_type_class_ref (WEBKIT_TYPE_WEB_VIEW),
-        "full-content-zoom") ? G_PARAM_READWRITE : G_PARAM_READABLE));
+    (g_object_class_find_property (g_type_class_ref (WEBKIT_TYPE_WEB_VIEW),
+        "full-content-zoom") ? G_PARAM_READWRITE : G_PARAM_READABLE)
+        | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_ACCEPT_COOKIES,
@@ -631,9 +632,9 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      MIDORI_TYPE_ACCEPT_COOKIES,
                                      MIDORI_ACCEPT_COOKIES_ALL,
                                      #if HAVE_LIBSOUP
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
                                      #else
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
                                      #endif
 
     g_object_class_install_property (gobject_class,
@@ -643,7 +644,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      _("Original cookies only"),
                                      _("Accept cookies from the original website only"),
                                      FALSE,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_MAXIMUM_COOKIE_AGE,
@@ -652,7 +653,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      _("Maximum cookie age"),
                                      _("The maximum number of days to save cookies for"),
                                      0, G_MAXINT, 30,
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
 
 
@@ -681,7 +682,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      _("Remember last form inputs"),
                                      _("Whether the last form inputs are saved"),
                                      TRUE,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
     g_object_class_install_property (gobject_class,
                                      PROP_REMEMBER_LAST_DOWNLOADED_FILES,
@@ -690,7 +691,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      _("Remember last downloaded files"),
                                      _("Whether the last downloaded files are saved"),
                                      TRUE,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 
 
 
@@ -702,9 +703,9 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      _("The proxy server used for HTTP connections"),
                                      NULL,
                                      #if HAVE_LIBSOUP
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
                                      #else
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
                                      #endif
 
     /**
@@ -724,9 +725,9 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      MIDORI_TYPE_IDENTITY,
                                      MIDORI_IDENT_MIDORI,
                                      #if HAVE_LIBSOUP
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
                                      #else
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
                                      #endif
 
     /**
@@ -744,9 +745,9 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      _("The application identification string"),
                                      NULL,
                                      #if HAVE_LIBSOUP
-                                     G_PARAM_READWRITE));
+                                     G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
                                      #else
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
                                      #endif
 
     g_object_class_install_property (gobject_class,
@@ -756,7 +757,7 @@ midori_web_settings_class_init (MidoriWebSettingsClass* class)
                                      _("Cache size"),
                                      _("The allowed size of the cache"),
                                      0, G_MAXINT, 100,
-                                     G_PARAM_READABLE));
+                                     G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 }
 
 static void