summaryrefslogtreecommitdiff
path: root/gtk/gtkbox.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2013-04-30 01:15:01 +0200
committerBenjamin Otte <otte@redhat.com>2013-05-01 16:41:11 +0200
commit6146bf7a32bf4ed6061744c30893b84991abe6b7 (patch)
treeac1e45deb9ce388da323f3c2268a3bb2a99a97af /gtk/gtkbox.c
parentea98c61f3c90cdd3b5e34fa57e510e8ca4715f09 (diff)
downloadgtk+-6146bf7a32bf4ed6061744c30893b84991abe6b7.tar.gz
gtkprivate: #define OPPOSITE_ORIENTATION
and use it
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r--gtk/gtkbox.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c
index f4e88eb379..e60fb4fa90 100644
--- a/gtk/gtkbox.c
+++ b/gtk/gtkbox.c
@@ -791,10 +791,7 @@ gtk_box_compute_expand (GtkWidget *widget,
gboolean opposite_expand;
GtkOrientation opposite_orientation;
- if (private->orientation == GTK_ORIENTATION_HORIZONTAL)
- opposite_orientation = GTK_ORIENTATION_VERTICAL;
- else
- opposite_orientation = GTK_ORIENTATION_HORIZONTAL;
+ opposite_orientation = OPPOSITE_ORIENTATION (private->orientation);
our_expand = FALSE;
opposite_expand = FALSE;