mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 08:40:08 +00:00
Use a define for the default theme name
This commit is contained in:
parent
6fa703b506
commit
974e930fb8
@ -34,6 +34,7 @@
|
||||
#include "gtkcssselectorprivate.h"
|
||||
#include "gtkcssshorthandpropertyprivate.h"
|
||||
#include "gtkcssstylefuncsprivate.h"
|
||||
#include "gtksettingsprivate.h"
|
||||
#include "gtkstyleprovider.h"
|
||||
#include "gtkstylecontextprivate.h"
|
||||
#include "gtkstylepropertiesprivate.h"
|
||||
@ -2838,9 +2839,9 @@ _gtk_css_provider_load_named (GtkCssProvider *provider,
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Worst case, fall back to Raleigh */
|
||||
g_return_if_fail (!g_str_equal (name, "Raleigh")); /* infloop protection */
|
||||
_gtk_css_provider_load_named (provider, "Raleigh", NULL);
|
||||
/* Worst case, fall back to the default */
|
||||
g_return_if_fail (!g_str_equal (name, DEFAULT_THEME_NAME)); /* infloop protection */
|
||||
_gtk_css_provider_load_named (provider, DEFAULT_THEME_NAME, NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -435,7 +435,7 @@ gtk_settings_class_init (GtkSettingsClass *class)
|
||||
#ifdef G_OS_WIN32
|
||||
_gtk_win32_theme_get_default (),
|
||||
#else
|
||||
"Raleigh",
|
||||
DEFAULT_THEME_NAME,
|
||||
#endif
|
||||
GTK_PARAM_READWRITE),
|
||||
NULL);
|
||||
@ -2984,7 +2984,7 @@ get_theme_name (GtkSettings *settings)
|
||||
return theme_name;
|
||||
|
||||
g_free (theme_name);
|
||||
return g_strdup ("Raleigh");
|
||||
return g_strdup (DEFAULT_THEME_NAME);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define DEFAULT_THEME_NAME "Raleigh"
|
||||
|
||||
void _gtk_settings_set_property_value_from_rc (GtkSettings *settings,
|
||||
const gchar *name,
|
||||
|
Loading…
Reference in New Issue
Block a user