From 9b752aee1a07e2b9a71969ddeb3f560f137b8ce8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 10 Jan 2011 20:33:13 -0500 Subject: [PATCH] Don't use deprecated style api --- demos/gtk-demo/offscreen_window.c | 1 - demos/gtk-demo/offscreen_window2.c | 1 - 2 files changed, 2 deletions(-) diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c index 27ff99ef8d..f547f0727d 100644 --- a/demos/gtk-demo/offscreen_window.c +++ b/demos/gtk-demo/offscreen_window.c @@ -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); diff --git a/demos/gtk-demo/offscreen_window2.c b/demos/gtk-demo/offscreen_window2.c index 96d953dbbe..ee2e595673 100644 --- a/demos/gtk-demo/offscreen_window2.c +++ b/demos/gtk-demo/offscreen_window2.c @@ -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);