app: do not hardcode default theme and icon theme all over the code.

Create GIMP_CONFIG_DEFAULT_(ICON_)?THEME in gimpguiconfig.h to set
defaults in a single place, except for libgimpwidgets/ which cannot
include from app/.
This commit is contained in:
Jehan
2016-01-11 03:03:28 +01:00
parent 3275ea4a29
commit fa9e5b8f98
5 changed files with 18 additions and 13 deletions

View File

@ -199,7 +199,7 @@ icon_themes_get_theme_dir (Gimp *gimp,
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
if (! icon_theme_name)
icon_theme_name = "Default";
icon_theme_name = GIMP_CONFIG_DEFAULT_ICON_THEME;
return g_hash_table_lookup (icon_themes_hash, icon_theme_name);
}
@ -211,7 +211,7 @@ icons_apply_theme (Gimp *gimp,
g_return_if_fail (GIMP_IS_GIMP (gimp));
if (! icon_theme_name)
icon_theme_name = "Default";
icon_theme_name = GIMP_CONFIG_DEFAULT_ICON_THEME;
if (gimp->be_verbose)
g_print ("Loading icon theme '%s'\n", icon_theme_name);