summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2013-02-01 17:22:13 +0100
committerMatthias Clasen <mclasen@redhat.com>2013-02-01 22:58:55 -0500
commitce869921ab88b344c9a417852837305d24fa155d (patch)
tree2f1b901318dabcd995ec14e2b9b46bbd6c2838f0 /demos
parent7c1c7cb7282fd4226016dd7159ea6c93bed727b0 (diff)
downloadgtk+-ce869921ab88b344c9a417852837305d24fa155d.tar.gz
Don't use gtk_scrolled_window_add_with_viewport() in tests
https://bugzilla.gnome.org/show_bug.cgi?id=693015
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/toolpalette.c6
1 files changed, 2 insertions, 4 deletions
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,