Commit 6abcda83 authored by Matthias Clasen's avatar Matthias Clasen

Use a define for the default icon theme name

We're using this name in two places, so match what we are doing
for the default theme name, and use a macro.
parent eee70574
......@@ -44,7 +44,7 @@
#include "gtkintl.h"
#include "gtkmain.h"
#include "deprecated/gtknumerableiconprivate.h"
#include "gtksettings.h"
#include "gtksettingsprivate.h"
#include "gtkprivate.h"
#undef GDK_DEPRECATED
......@@ -1348,7 +1348,7 @@ load_themes (GtkIconTheme *icon_theme)
* and gnome is a pragmatic solution to prevent missing icons in
* GTK+ applications when run under, e.g. KDE.
*/
insert_theme (icon_theme, "Adwaita");
insert_theme (icon_theme, DEFAULT_ICON_THEME);
insert_theme (icon_theme, "gnome");
insert_theme (icon_theme, FALLBACK_ICON_THEME);
priv->themes = g_list_reverse (priv->themes);
......
......@@ -449,7 +449,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
g_param_spec_string ("gtk-icon-theme-name",
P_("Icon Theme Name"),
P_("Name of icon theme to use"),
"Adwaita",
DEFAULT_ICON_THEME,
GTK_PARAM_READWRITE),
NULL);
g_assert (result == PROP_ICON_THEME_NAME);
......
......@@ -24,6 +24,7 @@
G_BEGIN_DECLS
#define DEFAULT_THEME_NAME "Adwaita"
#define DEFAULT_ICON_THEME "Adwaita"
void _gtk_settings_set_property_value_from_rc (GtkSettings *settings,
const gchar *name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment