summaryrefslogtreecommitdiff
path: root/ui/gtk/old-gtk-compat.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-07-15 23:20:34 +0000
committerGuy Harris <guy@alum.mit.edu>2012-07-15 23:20:34 +0000
commit6469a1d606dbc95288c0636c9f7a7b95f87d5ab5 (patch)
treed46c8fc4cf899f30085c35ac51cf8df0ca674bc4 /ui/gtk/old-gtk-compat.h
parent19c7ee7ae280043f3d3554b7f94eed364d647a73 (diff)
downloadwireshark-6469a1d606dbc95288c0636c9f7a7b95f87d5ab5.tar.gz
Get rid of probably-unnecessary parentheses around the expansion of
gtk_widget_get_allocation() (gtk_widget_set_window() doesn't have them), but *do* put parentheses around its "x" argument. Fix gtk_widget_set_allocation() to set the allocation. svn path=/trunk/; revision=43735
Diffstat (limited to 'ui/gtk/old-gtk-compat.h')
-rw-r--r--ui/gtk/old-gtk-compat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/old-gtk-compat.h b/ui/gtk/old-gtk-compat.h
index b5b1251906..38816574e9 100644
--- a/ui/gtk/old-gtk-compat.h
+++ b/ui/gtk/old-gtk-compat.h
@@ -51,8 +51,8 @@
# define gtk_widget_get_has_window(x) (!GTK_WIDGET_NO_WINDOW(x))
# define gtk_widget_get_visible(x) GTK_WIDGET_VISIBLE(x)
# define gtk_widget_get_state(x) GTK_WIDGET_STATE(x)
-# define gtk_widget_get_allocation(x,y) (*(y) = x->allocation)
-# define gtk_widget_set_allocation(x, y) (x) = *(y)
+# define gtk_widget_get_allocation(x,y) *(y) = (x)->allocation
+# define gtk_widget_set_allocation(x, y) (x)->allocation = *(y)
# define gtk_widget_get_sensitive(x) GTK_WIDGET_SENSITIVE(x)
# define gtk_widget_is_drawable(x) GDK_IS_DRAWABLE(x)
# define gtk_widget_set_window(x, y) (x)->window = (y)