diff options
author | Timm Bäder <mail@baedert.org> | 2015-07-20 17:04:25 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2015-07-20 21:02:58 +0200 |
commit | 173ef4ee660c544ce1d2062c41f6867b00c5b832 (patch) | |
tree | d0f323ce600a5d3061efa5496a78bd10607e47a6 | |
parent | 8a6bad7faf13c3d09a8278662616fc7d05d94e9c (diff) | |
download | gtk+-173ef4ee660c544ce1d2062c41f6867b00c5b832.tar.gz |
offscreen_window: Remove deprecated API calls
-rw-r--r-- | demos/gtk-demo/offscreen_window.c | 4 | ||||
-rw-r--r-- | demos/gtk-demo/offscreen_window2.c | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c index 433cad1b84..38d4cccb61 100644 --- a/demos/gtk-demo/offscreen_window.c +++ b/demos/gtk-demo/offscreen_window.c @@ -230,7 +230,6 @@ gtk_rotated_bin_realize (GtkWidget *widget) { GtkRotatedBin *bin = GTK_ROTATED_BIN (widget); GtkAllocation allocation; - GtkStyleContext *context; GdkWindow *window; GdkWindowAttr attributes; gint attributes_mask; @@ -290,9 +289,6 @@ gtk_rotated_bin_realize (GtkWidget *widget) g_signal_connect (bin->offscreen_window, "from-embedder", G_CALLBACK (offscreen_window_from_parent), bin); - context = gtk_widget_get_style_context (widget); - gtk_style_context_set_background (context, window); - gtk_style_context_set_background (context, bin->offscreen_window); gdk_window_show (bin->offscreen_window); } diff --git a/demos/gtk-demo/offscreen_window2.c b/demos/gtk-demo/offscreen_window2.c index 50f77a2899..f29fd9b78c 100644 --- a/demos/gtk-demo/offscreen_window2.c +++ b/demos/gtk-demo/offscreen_window2.c @@ -169,7 +169,6 @@ gtk_mirror_bin_realize (GtkWidget *widget) { GtkMirrorBin *bin = GTK_MIRROR_BIN (widget); GtkAllocation allocation; - GtkStyleContext *context; GdkWindow *window; GdkWindowAttr attributes; gint attributes_mask; @@ -229,9 +228,6 @@ gtk_mirror_bin_realize (GtkWidget *widget) g_signal_connect (bin->offscreen_window, "from-embedder", G_CALLBACK (offscreen_window_from_parent), bin); - context = gtk_widget_get_style_context (widget); - gtk_style_context_set_background (context, window); - gtk_style_context_set_background (context, bin->offscreen_window); gdk_window_show (bin->offscreen_window); } |