Use the correct GTK+ APIs for setting and changing the theme:
2003-11-12 Michael Natterer <mitch@gimp.org> Use the correct GTK+ APIs for setting and changing the theme: * app/gui/themes.c (themes_apply_theme): don't call gtk_rc_parse() but write a new config file "~/.gimp-1.3/themerc" which includes both the theme's and the user's gtkrc files. (themes_init): use gtk_rc_add_default_file() to make themerc known to GTK+. (themes_theme_change_notify): don't fiddle with toplevel windows manually but simply call gtk_rc_reparse_all() after writing the new themerc. * libgimp/gimpui.c (gimp_ui_init): use gtk_rc_add_default_file() instead of gtk_rc_parse(). * app/gui/preferences-dialog.c: cleaned up / beautified the theme selector. Added a "Reload Current Theme" button. Simplified GtkTreeView column inserting all over the place. (prefs_response): destroy the preferences dialog later so we don't crash when cancelling a theme change on "Cancel" (workaround for bug #126808). * app/gui/module-browser.c (module_browser_new): column inserting simplification.
This commit is contained in:
committed by
Michael Natterer
parent
dfe47821d3
commit
8706affa1d
@ -171,12 +171,11 @@ module_browser_new (Gimp *gimp)
|
||||
|
||||
gtk_tree_view_append_column (GTK_TREE_VIEW (tv), col);
|
||||
|
||||
rend = gtk_cell_renderer_text_new ();
|
||||
col = gtk_tree_view_column_new_with_attributes (_("Module Path"), rend,
|
||||
"text", PATH_COLUMN,
|
||||
NULL);
|
||||
|
||||
gtk_tree_view_append_column (GTK_TREE_VIEW (tv), col);
|
||||
gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (tv), 1,
|
||||
_("Module Path"),
|
||||
gtk_cell_renderer_text_new (),
|
||||
"text", PATH_COLUMN,
|
||||
NULL);
|
||||
|
||||
gtk_container_add (GTK_CONTAINER (listbox), tv);
|
||||
gtk_widget_show (tv);
|
||||
|
||||
Reference in New Issue
Block a user