Use gtk_separator_new() instead gtk_[v|h]separator_new()

This commit is contained in:
Javier Jardón
2010-10-30 01:32:34 +02:00
committed by Tristan Van Berkom
parent 2615ebf37e
commit 821c3c6578
19 changed files with 55 additions and 48 deletions

View File

@ -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);

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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);