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 567283 - Get rid of gnome-init
Get rid of gnome-init
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-01-10 17:15 UTC by André Klapper
Modified: 2013-09-13 00:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description André Klapper 2009-01-10 17:15:56 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);
Comment 1 Matthew Barnes 2009-04-27 17:02:12 UTC
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().
Comment 2 André Klapper 2009-04-30 15:17:28 UTC
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>


Comment 3 Matthew Barnes 2009-05-01 02:12:09 UTC
Some progress on this in
http://git.gnome.org/cgit/evolution/commit/?id=4ce3d9c321888226b2bcbf67e189261d0edb5a53
Comment 4 Matthew Barnes 2009-05-01 02:26:44 UTC
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.
Comment 5 Matthew Barnes 2009-09-18 16:53:18 UTC
Remaining cases are all gone as of:
http://git.gnome.org/cgit/evolution/commit/?id=acb28fef9de532b4f1a62f1d2ca90e744eaf85c4

Closing this is FIXED.