GNOME Bugzilla – Bug 570731
Get rid of gnome-config in yelp
Last modified: 2009-07-20 11:32:49 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 ./yelp/src/yelp-window.c: width = gnome_config_get_int (YELP_CONFIG_WIDTH ./yelp/src/yelp-window.c: height = gnome_config_get_int (YELP_CONFIG_HEIGHT ./yelp/src/yelp-window.c: gnome_config_set_int (YELP_CONFIG_WIDTH, width); ./yelp/src/yelp-window.c: gnome_config_set_int (YELP_CONFIG_HEIGHT, height); ./yelp/src/yelp-window.c: gnome_config_sync (); ./yelp/src/yelp-bookmarks.c: width = gnome_config_get_int (BK_CONFIG_WIDTH ./yelp/src/yelp-bookmarks.c: height = gnome_config_get_int (BK_CONFIG_HEIGHT ./yelp/src/yelp-bookmarks.c: gnome_config_set_int (BK_CONFIG_WIDTH, width); ./yelp/src/yelp-bookmarks.c: gnome_config_set_int (BK_CONFIG_HEIGHT, height); ./yelp/src/yelp-bookmarks.c: gnome_config_sync ();
Created attachment 129874 [details] [review] Changes all gnome-config API calls to GKeyFile Please, if it can be done more effectively or something is wrote, write here or main me.
Shaun, can this get a review too?
Thanks for the patch. I've committed a modified version to current HEAD Major differences are to remove loads from when we're storing (they don't do anything, except cause breakages when the file doesn't exist - in that case, it errors and doesn't actually set anything anyway). Other than that, a couple of stylistic changes to fit current code. 2009-04-29 Don Scorgie <dscorgie@src.gnome.org> * src/yelp-bookmarks.c: * src/yelp-window.c: Convert gnome-config useage to GKeyFile Bug #570731 based on the patch from Filipp Ivanov
http://git.gnome.org/cgit/yelp/commit/?id=5b3356984a7a3b63928032a9a82175d9d73fee33 http://git.gnome.org/cgit/yelp/commit/?id=14a123dfb5f14b5256166cd2f6be256b80ff2f8f Looks like the include headers are still in though. Reopening.
Fixed in commit: http://git.gnome.org/cgit/yelp/commit/?id=e6cda8725fbb1c9df3631dbf00afa5cf458ace47