summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-10-30 01:32:34 +0200
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-10-30 17:37:02 +0900
commit821c3c65787e6d006c831895b88d0b5b0a3e54e6 (patch)
tree1bebf8a88faaa202ab3da4049040379ea461eafe /examples
parent2615ebf37e552ad863a5b4c00c1d9bc96a75a557 (diff)
downloadgtk+-821c3c65787e6d006c831895b88d0b5b0a3e54e6.tar.gz
Use gtk_separator_new() instead gtk_[v|h]separator_new()
Diffstat (limited to 'examples')
-rw-r--r--examples/calendar/calendar.c2
-rw-r--r--examples/packbox/packbox.c10
-rw-r--r--examples/progressbar/progressbar.c2
-rw-r--r--examples/radiobuttons/radiobuttons.c2
-rw-r--r--examples/rangewidgets/rangewidgets.c2
5 files changed, 9 insertions, 9 deletions
diff --git a/examples/calendar/calendar.c b/examples/calendar/calendar.c
index 2f472137fe..06312063c5 100644
--- a/examples/calendar/calendar.c
+++ b/examples/calendar/calendar.c
@@ -322,7 +322,7 @@ static void create_calendar( void )
&calendar_data);
- separator = gtk_vseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_VERTICAL);
gtk_box_pack_start (GTK_BOX (hbox), separator, FALSE, TRUE, 0);
vbox2 = gtk_vbox_new (FALSE, DEF_PAD);
diff --git a/examples/packbox/packbox.c b/examples/packbox/packbox.c
index 9189825626..381fa2b2e4 100644
--- a/examples/packbox/packbox.c
+++ b/examples/packbox/packbox.c
@@ -141,7 +141,7 @@ int main( int argc,
/* Creates a separator, we'll learn more about these later,
* but they are quite simple. */
- separator = gtk_hseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
/* Pack the separator into the vbox. Remember each of these
* widgets is being packed into a vbox, so they'll be stacked
@@ -166,7 +166,7 @@ int main( int argc,
gtk_widget_show (box2);
/* Another new separator. */
- separator = gtk_hseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
/* The last 3 arguments to gtk_box_pack_start are:
* expand, fill, padding. */
gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 5);
@@ -193,7 +193,7 @@ int main( int argc,
gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, FALSE, 0);
gtk_widget_show (box2);
- separator = gtk_hseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
/* The last 3 arguments to gtk_box_pack_start are:
* expand, fill, padding. */
gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 5);
@@ -214,7 +214,7 @@ int main( int argc,
gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, FALSE, 0);
gtk_widget_show (box2);
- separator = gtk_hseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
/* The last 3 arguments to gtk_box_pack_start are: expand, fill, padding. */
gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 5);
gtk_widget_show (separator);
@@ -239,7 +239,7 @@ int main( int argc,
gtk_widget_show (box2);
/* A separator for the bottom. */
- separator = gtk_hseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
/* This explicitly sets the separator to 400 pixels wide by 5 pixels
* high. This is so the hbox we created will also be 400 pixels wide,
* and the "end" label will be separated from the other labels in the
diff --git a/examples/progressbar/progressbar.c b/examples/progressbar/progressbar.c
index 525cbba1bd..790e97dff8 100644
--- a/examples/progressbar/progressbar.c
+++ b/examples/progressbar/progressbar.c
@@ -136,7 +136,7 @@ int main( int argc,
/* Add a timer callback to update the value of the progress bar */
pdata->timer = gdk_threads_add_timeout (100, progress_timeout, pdata);
- separator = gtk_hseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start (GTK_BOX (vbox), separator, FALSE, FALSE, 0);
gtk_widget_show (separator);
diff --git a/examples/radiobuttons/radiobuttons.c b/examples/radiobuttons/radiobuttons.c
index ad66c423bb..8f783016a1 100644
--- a/examples/radiobuttons/radiobuttons.c
+++ b/examples/radiobuttons/radiobuttons.c
@@ -55,7 +55,7 @@ int main( int argc,
gtk_box_pack_start (GTK_BOX (box2), button, TRUE, TRUE, 0);
gtk_widget_show (button);
- separator = gtk_hseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0);
gtk_widget_show (separator);
diff --git a/examples/rangewidgets/rangewidgets.c b/examples/rangewidgets/rangewidgets.c
index e72bc5c19f..11fc08b9b4 100644
--- a/examples/rangewidgets/rangewidgets.c
+++ b/examples/rangewidgets/rangewidgets.c
@@ -258,7 +258,7 @@ static void create_range_controls( void )
gtk_box_pack_start (GTK_BOX (box1), box2, TRUE, TRUE, 0);
gtk_widget_show (box2);
- separator = gtk_hseparator_new ();
+ separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL);
gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0);
gtk_widget_show (separator);