GNOME Bugzilla – Bug 567283
Get rid of gnome-init
Last modified: 2013-09-13 00:59:29 UTC
http://live.gnome.org/LibgnomeMustDie says: .gnome2/ dir stuff. Apps should probably migrate to g_get_config_dir() ($XDG_CONFIG_HOME) $:andre\> grep -r gnome_init . ./addressbook/gui/widgets/test-reflow.c: gnome_init( "Reflow Test", VERSION, argc, argv); ./widgets/misc/test-error.c: gnome_init ("test-error", "0.0", argc, argv); ./widgets/misc/ChangeLog: Use gnome_program_init() instead of gnome_init(). ./widgets/misc/test-charset-picker.c: gnome_init ("test-charset-picker", "1.0", argc, argv); ./widgets/text/e-text-test.c: gnome_init ("ETextTest", "0.0.1", argc, argv); ./widgets/text/e-text-model-test.c: gnome_init ("ETextModelTest", "0.0", argc, argv); ./widgets/table/e-table-example-2.c: gnome_init ("TableExample", "TableExample", argc, argv); ./widgets/table/e-table-example-1.c: gnome_init ("TableExample", "TableExample", argc, argv); ./widgets/table/e-table-size-test.c: gnome_init ("TableExample", "TableExample", argc, argv); ./widgets/table/table-test.c: gnome_init ("TableTest", "TableTest", argc, argv); ./filter/filter-part.c: gnome_init ("test", "0.0", argc, argv);
Don't forget gnome_program_init(). Fixed most gnome_program_init() calls in the kill-bonobo branch, but failed to look for gnome_init(). A partial patch for master can be assembled from: http://git.gnome.org/cgit/evolution/commit/?h=kill-bonobo&id=c3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6 Fixing gnome_init() calls should be straight-forward. Use gtk_init().
Dropping the headers from a #include grep for "init" here: ./addressbook/gui/widgets/test-reflow.c:#include <libgnomeui/gnome-init.h> ./addressbook/tools/evolution-addressbook-export.c:#include <libgnome/gnome-init.h> ./plugins/groupwise-features/share-folder.c:#include <libgnome/gnome-init.h> ./plugins/groupwise-features/proxy.c:#include <libgnome/gnome-init.h> ./plugins/groupwise-features/junk-settings.c:#include <libgnome/gnome-init.h> ./e-util/e-win32-reloc.c:#include <libgnome/gnome-init.h> ./e-util/e-util.c:#include <libgnome/gnome-init.h> ./calendar/gui/main.c:#include <libgnome/gnome-init.h> ./calendar/gui/alarm-notify/notify-main.c:#include <libgnome/gnome-init.h> ./addressbook/gui/contact-editor/test-editor.c:#include <libgnomeui/gnome-ui-init.h> ./plugins/groupwise-features/share-folder.c:#include <libgnomeui/gnome-ui-init.h> ./plugins/groupwise-features/proxy.c:#include <libgnomeui/gnome-ui-init.h> ./plugins/groupwise-features/junk-settings.c:#include <libgnomeui/gnome-ui-init.h> ./smime/tests/import-cert.c:#include <libgnomeui/gnome-ui-init.h> ./widgets/misc/test-calendar.c:#include <libgnomeui/gnome-ui-init.h> ./widgets/misc/test-dropdown-button.c:#include <libgnomeui/gnome-ui-init.h> ./widgets/misc/test-multi-config-dialog.c:#include <libgnomeui/gnome-ui-init.h> ./widgets/misc/test-error.c:#include <libgnomeui/gnome-ui-init.h> ./widgets/misc/test-dateedit.c:#include <libgnomeui/gnome-ui-init.h> ./widgets/misc/test-info-label.c:#include <libgnomeui/gnome-ui-init.h> ./shell/main.c:#include <libgnomeui/gnome-ui-init.h> ./calendar/gui/alarm-notify/notify-main.c:#include <libgnomeui/gnome-ui-init.h>
Some progress on this in http://git.gnome.org/cgit/evolution/commit/?id=4ce3d9c321888226b2bcbf67e189261d0edb5a53
Got as far as I could in http://git.gnome.org/cgit/evolution/commit/?id=b915f8b5bd5e2da3711f08ac4b18d28bc9e7a21b The remaining cases are harder to fix: calendar/gui/alarm-notify/notify-main.c:#include <libgnome/gnome-init.h> calendar/gui/alarm-notify/notify-main.c:#include <libgnomeui/gnome-ui-init.h> calendar/gui/main.c:#include <libgnome/gnome-init.h> e-util/e-win32-reloc.c:#include <libgnome/gnome-init.h> e-util/e-util.c:#include <libgnome/gnome-init.h> shell/main.c:#include <libgnomeui/gnome-ui-init.h> widgets/misc/test-dropdown-button.c:#include <libgnomeui/gnome-ui-init.h> Note: test-dropdown-button.c will be dealt with by the kill-bonobo branch.
Remaining cases are all gone as of: http://git.gnome.org/cgit/evolution/commit/?id=acb28fef9de532b4f1a62f1d2ca90e744eaf85c4 Closing this is FIXED.