gchar* config_file;
/* Skip state related properties to avoid disk IO */
- if ((pspec && g_str_has_prefix (pspec->name, "last-window-"))
- || (pspec && g_str_has_prefix (pspec->name, "user-stylesheet-uri"))
- || (pspec && g_str_equal (pspec->name, "search-width"))
- || (pspec && g_str_has_prefix (pspec->name, "last-panel-")))
+ if (pspec && pspec->flags & MIDORI_PARAM_DELAY_SAVING)
return;
config_file = build_config_filename ("config");
_("Last window width"),
_("The last saved window width"),
0, G_MAXINT, 0,
- flags));
+ flags | MIDORI_PARAM_DELAY_SAVING));
g_object_class_install_property (gobject_class,
PROP_LAST_WINDOW_HEIGHT,
_("Last window height"),
_("The last saved window height"),
0, G_MAXINT, 0,
- flags));
+ flags | MIDORI_PARAM_DELAY_SAVING));
/**
* MidoriWebSettings:last-window-state:
"The last saved window state",
MIDORI_TYPE_WINDOW_STATE,
MIDORI_WINDOW_NORMAL,
- flags));
+ flags | MIDORI_PARAM_DELAY_SAVING));
g_object_class_install_property (gobject_class,
PROP_LAST_PANEL_POSITION,
_("Last panel position"),
_("The last saved panel position"),
0, G_MAXINT, 0,
- flags));
+ flags | MIDORI_PARAM_DELAY_SAVING));
g_object_class_install_property (gobject_class,
PROP_LAST_PANEL_PAGE,
_("Last panel page"),
_("The last saved panel page"),
0, G_MAXINT, 0,
- flags));
+ flags | MIDORI_PARAM_DELAY_SAVING));
g_object_class_install_property (gobject_class,
PROP_LAST_WEB_SEARCH,
"User stylesheet URI",
"Load stylesheets from a local URI",
NULL,
- flags));
+ flags | MIDORI_PARAM_DELAY_SAVING));
/**
* MidoriWebSettings:search-entry-width:
"Search action width",
"Search action width in pixels",
10, G_MAXINT, 200,
- flags));
+ flags | MIDORI_PARAM_DELAY_SAVING));
}
static void