GNOME Bugzilla – Bug 570730
Get rid of gnome-config in Evolution
Last modified: 2013-09-13 00:58:20 UTC
According to http://live.gnome.org/LibgnomeMustDie , gnome-config has been replaced by GConf and GKeyFile. See http://library.gnome.org/devel/libgnome/stable/libgnome-gnome-config.html ./evolution/addressbook/conduit/address-conduit.c: gnome_config_push_prefix (prefix); ./evolution/addressbook/conduit/address-conduit.c: c->secret = gnome_config_get_bool ("secret=FALSE"); ./evolution/addressbook/conduit/address-conduit.c: address = gnome_config_get_string ("default_address=business"); ./evolution/addressbook/conduit/address-conduit.c: c->last_uri = gnome_config_get_string ("last_uri"); ./evolution/addressbook/conduit/address-conduit.c: gnome_config_pop_prefix (); ./evolution/addressbook/conduit/address-conduit.c: gnome_config_push_prefix (prefix); ./evolution/addressbook/conduit/address-conduit.c: gnome_config_set_bool ("secret", c->secret); ./evolution/addressbook/conduit/address-conduit.c: gnome_config_set_string ("default_address", "business"); ./evolution/addressbook/conduit/address-conduit.c: gnome_config_set_string ("default_address", "home"); ./evolution/addressbook/conduit/address-conduit.c: gnome_config_set_string ("default_address", "other"); ./evolution/addressbook/conduit/address-conduit.c: gnome_config_set_string ("last_uri", c->last_uri); ./evolution/addressbook/conduit/address-conduit.c: gnome_config_pop_prefix (); ./evolution/addressbook/conduit/address-conduit.c: gnome_config_sync (); ./evolution/addressbook/conduit/address-conduit.c: gnome_config_drop_all (); ./evolution/shell/importer/intelligent.c: gnome_config_push_prefix (prefix); ./evolution/shell/importer/intelligent.c: dontaskagain = gnome_config_get_bool (l->data); ./evolution/shell/importer/intelligent.c: gnome_config_pop_prefix (); ./evolution/shell/importer/intelligent.c: gnome_config_push_prefix (prefix); ./evolution/shell/importer/intelligent.c: dontaskagain = gnome_config_get_bool ("Dontaskagain=False"); ./evolution/shell/importer/intelligent.c: gnome_config_pop_prefix (); ./evolution/shell/importer/intelligent.c: gnome_config_push_prefix (prefix); ./evolution/shell/importer/intelligent.c: gnome_config_set_bool ("Dontaskagain", TRUE); ./evolution/shell/importer/intelligent.c: gnome_config_pop_prefix (); ./evolution/shell/importer/intelligent.c: gnome_config_sync (); ./evolution/shell/importer/intelligent.c: gnome_config_drop_all (); ./evolution/calendar/conduits/todo/todo-conduit.c: gnome_config_push_prefix (prefix); ./evolution/calendar/conduits/todo/todo-conduit.c: c->secret = gnome_config_get_bool ("secret=FALSE"); ./evolution/calendar/conduits/todo/todo-conduit.c: c->priority = gnome_config_get_int ("priority=3"); ./evolution/calendar/conduits/todo/todo-conduit.c: c->last_uri = gnome_config_get_string ("last_uri"); ./evolution/calendar/conduits/todo/todo-conduit.c: gnome_config_pop_prefix (); ./evolution/calendar/conduits/todo/todo-conduit.c: gnome_config_push_prefix (prefix); ./evolution/calendar/conduits/todo/todo-conduit.c: gnome_config_set_bool ("secret", c->secret); ./evolution/calendar/conduits/todo/todo-conduit.c: gnome_config_set_int ("priority", c->priority); ./evolution/calendar/conduits/todo/todo-conduit.c: gnome_config_set_string ("last_uri", c->last_uri); ./evolution/calendar/conduits/todo/todo-conduit.c: gnome_config_pop_prefix (); ./evolution/calendar/conduits/todo/todo-conduit.c: gnome_config_sync (); ./evolution/calendar/conduits/todo/todo-conduit.c: gnome_config_drop_all (); ./evolution/calendar/conduits/memo/memo-conduit.c: gnome_config_push_prefix (prefix); ./evolution/calendar/conduits/memo/memo-conduit.c: c->secret = gnome_config_get_bool ("secret=FALSE"); ./evolution/calendar/conduits/memo/memo-conduit.c: c->priority = gnome_config_get_int ("priority=3"); ./evolution/calendar/conduits/memo/memo-conduit.c: c->last_uri = gnome_config_get_string ("last_uri"); ./evolution/calendar/conduits/memo/memo-conduit.c: gnome_config_pop_prefix (); ./evolution/calendar/conduits/memo/memo-conduit.c: gnome_config_push_prefix (prefix); ./evolution/calendar/conduits/memo/memo-conduit.c: gnome_config_set_bool ("secret", c->secret); ./evolution/calendar/conduits/memo/memo-conduit.c: gnome_config_set_int ("priority", c->priority); ./evolution/calendar/conduits/memo/memo-conduit.c: gnome_config_set_string ("last_uri", c->last_uri); ./evolution/calendar/conduits/memo/memo-conduit.c: gnome_config_pop_prefix (); ./evolution/calendar/conduits/memo/memo-conduit.c: gnome_config_sync (); ./evolution/calendar/conduits/memo/memo-conduit.c: gnome_config_drop_all (); ./evolution/calendar/conduits/calendar/calendar-conduit.c: gnome_config_push_prefix (prefix); ./evolution/calendar/conduits/calendar/calendar-conduit.c: c->secret = gnome_config_get_bool ("secret=FALSE"); ./evolution/calendar/conduits/calendar/calendar-conduit.c: c->multi_day_split = gnome_config_get_bool ("multi_day_split=TRUE"); ./evolution/calendar/conduits/calendar/calendar-conduit.c: if ((c->last_uri = gnome_config_get_string ("last_uri")) && !strncmp (c->last_uri, "file://", 7)) { ./evolution/calendar/conduits/calendar/calendar-conduit.c: gnome_config_pop_prefix (); ./evolution/calendar/conduits/calendar/calendar-conduit.c: gnome_config_push_prefix (prefix); ./evolution/calendar/conduits/calendar/calendar-conduit.c: gnome_config_set_bool ("secret", c->secret); ./evolution/calendar/conduits/calendar/calendar-conduit.c: gnome_config_set_bool ("multi_day_split", c->multi_day_split); ./evolution/calendar/conduits/calendar/calendar-conduit.c: gnome_config_set_string ("last_uri", c->last_uri); ./evolution/calendar/conduits/calendar/calendar-conduit.c: gnome_config_pop_prefix (); ./evolution/calendar/conduits/calendar/calendar-conduit.c: gnome_config_sync (); ./evolution/calendar/conduits/calendar/calendar-conduit.c: gnome_config_drop_all (); ./evolution/mail/em-migrate.c: new = gnome_config_private_get_string_with_default(p, NULL); ./evolution/mail/em-migrate.c: gnome_config_private_set_string(p, value); ./evolution/mail/em-migrate.c: if (gnome_config_private_sync_file("/Evolution"))
I migrated e-passwords.c from gnome-config to GKeyFile a couple years ago. Probably could use that as a model for this.
Dropping the grep results here: ./addressbook/conduit/address-conduit.c:#include <libgnome/gnome-config.h> ./shell/importer/intelligent.c:#include <libgnome/gnome-config.h> ./calendar/conduits/todo/todo-conduit.c:#include <libgnome/gnome-config.h> ./calendar/conduits/memo/memo-conduit.c:#include <libgnome/gnome-config.h> ./calendar/conduits/calendar/calendar-conduit.c:#include <libgnome/gnome-config.h> ./mail/mail-session.c:#include <libgnome/gnome-config.h> ./mail/em-migrate.c:#include <libgnome/gnome-config.h>
Created commit 8f2b4f9 in master. using GConf, but ina way when they do it differently, then it'll be easy to fix. Couldn't test it, though, as I have no such device. Cross fingers. Left only evolution/shell/importer/intelligent.c because it gone in kill-bonobo.
You've too old sources, I committed it more than an hour ago.