use gtk_rc_parse() instead of gtk_rc_add_default_file() to add

2004-11-30  Michael Natterer  <mitch@gimp.org>

	* app/gui/themes.c (themes_init): use gtk_rc_parse() instead of
	gtk_rc_add_default_file() to add ~/.gimp-2.2/themerc to the list
	of files parsed by GTK+ because the latter works only before
	gtk_init(). Fixes bug #155963.
This commit is contained in:
Michael Natterer 2004-11-30 16:10:16 +00:00 committed by Michael Natterer
parent 49ae84caf0
commit ee9b4b83c1
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2004-11-30 Michael Natterer <mitch@gimp.org>
* app/gui/themes.c (themes_init): use gtk_rc_parse() instead of
gtk_rc_add_default_file() to add ~/.gimp-2.2/themerc to the list
of files parsed by GTK+ because the latter works only before
gtk_init(). Fixes bug #155963.
2004-11-30 Michael Natterer <mitch@gimp.org>
* app/dialogs/print-size-dialog.c: reordered prototypes to match

View File

@ -89,7 +89,7 @@ themes_init (Gimp *gimp)
themes_apply_theme (gimp, config->theme);
themerc = gimp_personal_rc_file ("themerc");
gtk_rc_add_default_file (themerc);
gtk_rc_parse (themerc);
g_free (themerc);
g_signal_connect (config, "notify::theme",