split out function themes_apply_theme() from themes_init(). Connect to
2003-11-12 Michael Natterer <mitch@gimp.org> * app/gui/themes.[ch]: split out function themes_apply_theme() from themes_init(). Connect to "notify::theme" of gimp->config and change the theme in the callback. Added themes_list_themes(). Added "const gchar *theme_name" parameter to themes_get_theme_dir(). * app/gui/gui-vtable.c (gui_get_theme_dir): changed accordingly. * app/gui/preferences-dialog.c (prefs_dialog_create): enabled theme selection on the "Interface" page. Still has many issues (like using a conceptually wrong method of theme changing ;-) but it won't get fixed if we cannot change themes on the fly...
This commit is contained in:
committed by
Michael Natterer
parent
614cc8272d
commit
0ce22bfc51
@ -24,6 +24,8 @@
|
||||
|
||||
#include "gui-types.h"
|
||||
|
||||
#include "config/gimpguiconfig.h"
|
||||
|
||||
#include "core/gimp.h"
|
||||
#include "core/gimpcontext.h"
|
||||
#include "core/gimpimage.h"
|
||||
@ -317,5 +319,5 @@ gui_get_display_name (Gimp *gimp,
|
||||
static const gchar *
|
||||
gui_get_theme_dir (Gimp *gimp)
|
||||
{
|
||||
return themes_get_theme_dir (gimp);
|
||||
return themes_get_theme_dir (gimp, GIMP_GUI_CONFIG (gimp->config)->theme);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user