summaryrefslogtreecommitdiff
path: root/tests/gtkoffscreenbox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-01-24 21:08:59 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-01-24 21:08:59 -0500
commit4caf302498a82ddeccffc4a733a7e42bbfa086f6 (patch)
treef595b438d49b73aa87b01fa9442c3a0673536d64 /tests/gtkoffscreenbox.c
parent5034920f7809181bcfaf4d84ef9b8e1fabf0fb9f (diff)
downloadgtk+-4caf302498a82ddeccffc4a733a7e42bbfa086f6.tar.gz
Remove deprecation warnings from demos and tests
There were a few uses of gtk_widget_get_root_window that need to be removed.
Diffstat (limited to 'tests/gtkoffscreenbox.c')
-rw-r--r--tests/gtkoffscreenbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gtkoffscreenbox.c b/tests/gtkoffscreenbox.c
index 7aeb82cdfd..29140a1f4f 100644
--- a/tests/gtkoffscreenbox.c
+++ b/tests/gtkoffscreenbox.c
@@ -305,7 +305,7 @@ gtk_offscreen_box_realize (GtkWidget *widget)
attributes.height = child_area.height;
start_y += child_area.height;
}
- offscreen_box->offscreen_window1 = gdk_window_new (gtk_widget_get_root_window (widget),
+ offscreen_box->offscreen_window1 = gdk_window_new (gdk_screen_get_root_window (gtk_widget_get_screen (widget)),
&attributes, attributes_mask);
gdk_window_set_user_data (offscreen_box->offscreen_window1, widget);
if (offscreen_box->child1)
@@ -329,7 +329,7 @@ gtk_offscreen_box_realize (GtkWidget *widget)
attributes.width = child_area.width;
attributes.height = child_area.height;
}
- offscreen_box->offscreen_window2 = gdk_window_new (gtk_widget_get_root_window (widget),
+ offscreen_box->offscreen_window2 = gdk_window_new (gdk_screen_get_root_window (gtk_widget_get_screen (widget)),
&attributes, attributes_mask);
gdk_window_set_user_data (offscreen_box->offscreen_window2, widget);
if (offscreen_box->child2)