From ce869921ab88b344c9a417852837305d24fa155d Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 1 Feb 2013 17:22:13 +0100 Subject: Don't use gtk_scrolled_window_add_with_viewport() in tests https://bugzilla.gnome.org/show_bug.cgi?id=693015 --- demos/gtk-demo/toolpalette.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'demos') diff --git a/demos/gtk-demo/toolpalette.c b/demos/gtk-demo/toolpalette.c index 25d05eebc7..174e4afccc 100644 --- a/demos/gtk-demo/toolpalette.c +++ b/demos/gtk-demo/toolpalette.c @@ -575,8 +575,7 @@ do_toolpalette (GtkWidget *do_widget) gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (contents_scroller), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); - gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (contents_scroller), - contents); + gtk_container_add (GTK_CONTAINER (contents_scroller), contents); gtk_container_set_border_width (GTK_CONTAINER (contents_scroller), 6); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), @@ -606,8 +605,7 @@ do_toolpalette (GtkWidget *do_widget) gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (contents_scroller), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); - gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (contents_scroller), - contents); + gtk_container_add (GTK_CONTAINER (contents_scroller), contents); gtk_container_set_border_width (GTK_CONTAINER (contents_scroller), 6); gtk_notebook_append_page (GTK_NOTEBOOK (notebook), contents_scroller, -- cgit v1.2.1