gconf_value_free(value);
}
/* get parameter one theme in all view */
+ priv->one_in_all_view = get_one_in_all_views_from_config();
+ return 0;
+}
+/*******************************************************************************/
+gboolean
+get_one_in_all_views_from_config(void){
+ GConfClient *gconf_client;
+ GConfValue *value = NULL;
+ gboolean result;
+
+ gconf_client = gconf_client_get_default();
+ if (!gconf_client) {
+ fprintf(stderr, _("Failed to initialize GConf. Quitting.\n"));
+ return FALSE;
+ }
+ /* get parameter one theme in all view */
value = gconf_client_get(gconf_client, GCONF_KEY_ONE_IN_ALL_VIEW, NULL);
if (value) {
- priv->one_in_all_view = gconf_value_get_bool(value);
+ result = gconf_value_get_bool(value);
gconf_value_free(value);
} else
- priv->one_in_all_view = FALSE;
-
- return 0;
+ result = FALSE;
+ return result;
}
-
/*******************************************************************************/
void
save_one_in_all_views_to_config(gboolean one_in_all_views){