After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 570730 - Get rid of gnome-config in Evolution
Get rid of gnome-config in Evolution
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: general
2.26.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
evolution[cleanup]
Depends on:
Blocks: 580887
 
 
Reported: 2009-02-05 23:39 UTC by André Klapper
Modified: 2013-09-13 00:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description André Klapper 2009-02-05 23:39:28 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"))
Comment 1 Matthew Barnes 2009-02-06 00:53:00 UTC
I migrated e-passwords.c from gnome-config to GKeyFile a couple years ago.
Probably could use that as a model for this.
Comment 2 André Klapper 2009-04-30 15:19:30 UTC
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>
Comment 3 Milan Crha 2009-04-30 16:08:23 UTC
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.
Comment 4 Milan Crha 2009-04-30 16:09:06 UTC
You've too old sources, I committed it more than an hour ago.