diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 2f1099182c..6061a75639 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -1213,10 +1213,10 @@ gtk.gresource.xml: Makefile.am inspector/Makefile.inc echo " " >> $@; \ for f in $(srcdir)/theme/Raleigh/*.css; do \ n=`basename $$f`; \ - echo " theme/Raleigh/$$n" >> $@; \ + echo " theme/Raleigh/$$n" >> $@; \ done; \ - echo " theme/Adwaita/gtk.css" >> $@; \ - echo " theme/Adwaita/gtk-dark.css" >> $@; \ + echo " theme/Adwaita/gtk.css" >> $@; \ + echo " theme/Adwaita/gtk-dark.css" >> $@; \ echo " theme/Adwaita/gtk-contained.css" >> $@; \ echo " theme/Adwaita/gtk-contained-dark.css" >> $@; \ for f in $(srcdir)/theme/Adwaita/assets/*.png; do \ @@ -1227,14 +1227,15 @@ gtk.gresource.xml: Makefile.am inspector/Makefile.inc n=`basename $$f`; \ echo " theme/Adwaita/assets/$$n" >> $@; \ done; \ - echo " theme/HighContrast/gtk.css" >> $@; \ - echo " theme/HighContrast/gtk-inverse.css" >> $@; \ + echo " theme/HighContrast/gtk.css" >> $@; \ + echo " theme/HighContrast/gtk-inverse.css" >> $@; \ echo " theme/HighContrast/gtk-contained.css" >> $@; \ echo " theme/HighContrast/gtk-contained-inverse.css" >> $@; \ if test "$(win32_theme)" = "yes"; then \ for f in $(srcdir)/theme/win32/*.css; do \ n=`basename $$f`; \ - echo " theme/win32/$$n" >> $@; \ + m=`echo $$n | cut -b 5-` \ + echo " theme/win32/$$n" >> $@; \ done; \ fi; \ for f in $(srcdir)/cursor/*.png; do \ diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c index 1c192c7493..c6481a60ca 100644 --- a/gtk/gtkcssprovider.c +++ b/gtk/gtkcssprovider.c @@ -2106,9 +2106,9 @@ _gtk_css_provider_load_named (GtkCssProvider *provider, * themes. */ if (variant) - resource_path = g_strdup_printf ("/org/gtk/libgtk/theme/%s-%s.css", name, variant); + resource_path = g_strdup_printf ("/org/gtk/libgtk/theme/%s/gtk-%s.css", name, variant); else - resource_path = g_strdup_printf ("/org/gtk/libgtk/theme/%s.css", name); + resource_path = g_strdup_printf ("/org/gtk/libgtk/theme/%s/gtk.css", name); if (g_resources_get_info (resource_path, 0, NULL, NULL, NULL)) {