summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-10-30 01:47:13 +0200
committerJavier Jardón <jjardon@gnome.org>2010-10-30 02:26:23 +0200
commitb3a7d401a155a3cfeee61b4b094124f2ea97e6ac (patch)
tree2727796999afcb6a850c60df2c6eef837c9adc0d /demos
parentf00f120fd7daa01904dfb3dc5248ac3793274e83 (diff)
downloadgtk+-b3a7d401a155a3cfeee61b4b094124f2ea97e6ac.tar.gz
Use gtk_paned_new() instead gtk_[v|h]paned_new()
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/panes.c4
-rw-r--r--demos/gtk-demo/textview.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/demos/gtk-demo/panes.c b/demos/gtk-demo/panes.c
index 3399653d10..fd0822f17a 100644
--- a/demos/gtk-demo/panes.c
+++ b/demos/gtk-demo/panes.c
@@ -156,11 +156,11 @@ do_panes (GtkWidget *do_widget)
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (window), vbox);
- vpaned = gtk_vpaned_new ();
+ vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
gtk_box_pack_start (GTK_BOX (vbox), vpaned, TRUE, TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER(vpaned), 5);
- hpaned = gtk_hpaned_new ();
+ hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
gtk_paned_add1 (GTK_PANED (vpaned), hpaned);
frame = gtk_frame_new (NULL);
diff --git a/demos/gtk-demo/textview.c b/demos/gtk-demo/textview.c
index fb339f19ef..235afa9ca9 100644
--- a/demos/gtk-demo/textview.c
+++ b/demos/gtk-demo/textview.c
@@ -434,7 +434,7 @@ do_textview (GtkWidget *do_widget)
gtk_window_set_title (GTK_WINDOW (window), "TextView");
gtk_container_set_border_width (GTK_CONTAINER (window), 0);
- vpaned = gtk_vpaned_new ();
+ vpaned = gtk_paned_new (GTK_ORIENTATION_VERTICAL);
gtk_container_set_border_width (GTK_CONTAINER(vpaned), 5);
gtk_container_add (GTK_CONTAINER (window), vpaned);