Remove deprecation warnings from demos and tests

There were a few uses of gtk_widget_get_root_window that
need to be removed.
This commit is contained in:
Matthias Clasen 2014-01-24 21:08:59 -05:00
parent 5034920f78
commit 4caf302498
3 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)