diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-10-30 01:32:34 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-10-30 02:26:23 +0200 |
commit | 8d008790be41f3bd265a2addb2143ebbc8afac2b (patch) | |
tree | fdfdba1a0cb4f85b620f83b6cf904502a8a27f92 /examples | |
parent | e31304fb7b86b134edf85c9acb1432b1e15f5831 (diff) | |
download | gtk+-8d008790be41f3bd265a2addb2143ebbc8afac2b.tar.gz |
Use gtk_separator_new() instead gtk_[v|h]separator_new()
Diffstat (limited to 'examples')
-rw-r--r-- | examples/calendar/calendar.c | 2 | ||||
-rw-r--r-- | examples/packbox/packbox.c | 10 | ||||
-rw-r--r-- | examples/progressbar/progressbar.c | 2 | ||||
-rw-r--r-- | examples/radiobuttons/radiobuttons.c | 2 | ||||
-rw-r--r-- | examples/rangewidgets/rangewidgets.c | 2 |
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); |