diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-01-24 21:08:59 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-01-24 21:08:59 -0500 |
commit | 4caf302498a82ddeccffc4a733a7e42bbfa086f6 (patch) | |
tree | f595b438d49b73aa87b01fa9442c3a0673536d64 /demos | |
parent | 5034920f7809181bcfaf4d84ef9b8e1fabf0fb9f (diff) | |
download | gtk+-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 'demos')
-rw-r--r-- | demos/gtk-demo/offscreen_window.c | 2 | ||||
-rw-r--r-- | demos/gtk-demo/offscreen_window2.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/offscreen_window.c b/demos/gtk-demo/offscreen_window.c index 7c141e13d9..ee542b3041 100644 --- a/demos/gtk-demo/offscreen_window.c +++ b/demos/gtk-demo/offscreen_window.c @@ -279,7 +279,7 @@ gtk_rotated_bin_realize (GtkWidget *widget) attributes.width = child_allocation.width; attributes.height = child_allocation.height; } - bin->offscreen_window = gdk_window_new (gtk_widget_get_root_window (widget), + bin->offscreen_window = gdk_window_new (gdk_screen_get_root_window (gtk_widget_get_screen (widget)), &attributes, attributes_mask); gdk_window_set_user_data (bin->offscreen_window, widget); if (bin->child) diff --git a/demos/gtk-demo/offscreen_window2.c b/demos/gtk-demo/offscreen_window2.c index fa67a595a2..b327f71052 100644 --- a/demos/gtk-demo/offscreen_window2.c +++ b/demos/gtk-demo/offscreen_window2.c @@ -218,7 +218,7 @@ gtk_mirror_bin_realize (GtkWidget *widget) attributes.width = child_allocation.width; attributes.height = child_allocation.height; } - bin->offscreen_window = gdk_window_new (gtk_widget_get_root_window (widget), + bin->offscreen_window = gdk_window_new (gdk_screen_get_root_window (gtk_widget_get_screen (widget)), &attributes, attributes_mask); gdk_window_set_user_data (bin->offscreen_window, widget); if (bin->child) |