]> Pileus Git - ~andy/gtk/commitdiff
Don't use deprecated style api
authorMatthias Clasen <mclasen@redhat.com>
Tue, 11 Jan 2011 01:33:13 +0000 (20:33 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 11 Jan 2011 01:33:13 +0000 (20:33 -0500)
demos/gtk-demo/offscreen_window.c
demos/gtk-demo/offscreen_window2.c

index 27ff99ef8dae29dc62270dfaec8306c236b61e34..f547f0727d2f48fa375fcc79da47b402420ae9cf 100644 (file)
@@ -290,7 +290,6 @@ gtk_rotated_bin_realize (GtkWidget *widget)
   g_signal_connect (bin->offscreen_window, "from-embedder",
                     G_CALLBACK (offscreen_window_from_parent), bin);
 
-  gtk_widget_style_attach (widget);
   context = gtk_widget_get_style_context (widget);
   gtk_style_context_set_background (context, window);
   gtk_style_context_set_background (context, bin->offscreen_window);
index 96d953dbbe92091989e3d686efa4a63b3800ae72..ee2e59567312fa2b1d20368f401d5899ba8a0fa4 100644 (file)
@@ -228,7 +228,6 @@ gtk_mirror_bin_realize (GtkWidget *widget)
   g_signal_connect (bin->offscreen_window, "from-embedder",
                     G_CALLBACK (offscreen_window_from_parent), bin);
 
-  gtk_widget_style_attach (widget);
   context = gtk_widget_get_style_context (widget);
   gtk_style_context_set_background (context, window);
   gtk_style_context_set_background (context, bin->offscreen_window);