"homogeneous" is a Boolean; we can just pass it on to gtk_hbox_new() and

gtk_vbox_new().

svn path=/trunk/; revision=42180
This commit is contained in:
Guy Harris 2012-04-21 18:48:49 +00:00
parent 317769c903
commit 051263c85d

View file

@ -1889,19 +1889,10 @@ gdk_pixbuf_get_from_surface (cairo_surface_t *surface,
GtkWidget * ws_gtk_box_new(GtkOrientation orientation, gint spacing, gboolean homogeneous)
{
#if !GTK_CHECK_VERSION(3,0,0)
if (orientation == GTK_ORIENTATION_HORIZONTAL){
if(homogeneous == TRUE){
return gtk_hbox_new(TRUE, spacing);
}else{
return gtk_hbox_new(FALSE, spacing);
}
}else{
if(homogeneous == TRUE){
return gtk_vbox_new(TRUE, spacing);
}else{
return gtk_vbox_new(FALSE, spacing);
}
}
if (orientation == GTK_ORIENTATION_HORIZONTAL)
return gtk_hbox_new(homogeneous, spacing);
else
return gtk_vbox_new(homogeneous, spacing);
#else
GtkWidget *widget;