summaryrefslogtreecommitdiff
path: root/gtk/gtkprivate.h
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/gtkprivate.h
parentea98c61f3c90cdd3b5e34fa57e510e8ca4715f09 (diff)
downloadgtk+-6146bf7a32bf4ed6061744c30893b84991abe6b7.tar.gz
gtkprivate: #define OPPOSITE_ORIENTATION
and use it
Diffstat (limited to 'gtk/gtkprivate.h')
-rw-r--r--gtk/gtkprivate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h
index 093334f84c..a07f7292ba 100644
--- a/gtk/gtkprivate.h
+++ b/gtk/gtkprivate.h
@@ -37,6 +37,8 @@ G_BEGIN_DECLS
#define GTK_PARAM_WRITABLE G_PARAM_WRITABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
#define GTK_PARAM_READWRITE G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB
+#define OPPOSITE_ORIENTATION(_orientation) (1 - (_orientation))
+
#ifdef G_DISABLE_CAST_CHECKS
/* This is true for debug no and minimum */
#define gtk_internal_return_if_fail(__expr) G_STMT_START{ (void)0; }G_STMT_END