theme: Use a MetaWindow path rather than a GtkWidget path

This is a terrible ugly hack.
This commit is contained in:
Jasper St. Pierre 2012-04-26 22:54:38 -04:00
parent f53e26bc39
commit 0be3f81841

View File

@ -4625,6 +4625,8 @@ meta_theme_variant_free (gpointer data)
g_slice_free (MetaThemeVariant, tv); g_slice_free (MetaThemeVariant, tv);
} }
extern GType meta_window_get_type (void);
static GtkStyleContext * static GtkStyleContext *
create_style_context (gchar *variant) create_style_context (gchar *variant)
{ {
@ -4639,7 +4641,7 @@ create_style_context (gchar *variant)
NULL); NULL);
path = gtk_widget_path_new (); path = gtk_widget_path_new ();
gtk_widget_path_append_type (path, GTK_TYPE_WINDOW); gtk_widget_path_append_type (path, meta_window_get_type ());
style = gtk_style_context_new (); style = gtk_style_context_new ();
gtk_style_context_set_path (style, path); gtk_style_context_set_path (style, path);