diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-04-21 18:48:49 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-04-21 18:48:49 +0000 |
commit | 051263c85d4b3ff9e2af07199ca3393afd889280 (patch) | |
tree | 77c3cd85e5177d3df62ad205b041dab06db16440 /ui/gtk | |
parent | 317769c90332f23c5d38dd5a58c8e252cf226542 (diff) |
"homogeneous" is a Boolean; we can just pass it on to gtk_hbox_new() and
gtk_vbox_new().
svn path=/trunk/; revision=42180
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/gui_utils.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/ui/gtk/gui_utils.c b/ui/gtk/gui_utils.c index 5b3284a8e9..436d7884c2 100644 --- a/ui/gtk/gui_utils.c +++ b/ui/gtk/gui_utils.c @@ -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; |