diff options
author | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-26 19:01:01 +0000 |
---|---|---|
committer | jmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-07-26 19:01:01 +0000 |
commit | d204300f059fe4a679a7e5ca1cac474096968499 (patch) | |
tree | 1231ce936463c6fc3526a91bb54404fd87fefc6d /gtk/old-gtk-compat.h | |
parent | 51643c0ad41e2c3f84e1ee5392f04c7cfa24ad53 (diff) |
Replace access to ...->allocation by gtk_widget_get_allocation +
using the return val - part 1
Maybe the call needs to be done more often.
Replace GTK_WIDGET_STATE by gtk_widget_get_state
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38215 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/old-gtk-compat.h')
-rw-r--r-- | gtk/old-gtk-compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/old-gtk-compat.h b/gtk/old-gtk-compat.h index 844509f287..00293b098e 100644 --- a/gtk/old-gtk-compat.h +++ b/gtk/old-gtk-compat.h @@ -49,6 +49,8 @@ #if !GTK_CHECK_VERSION (2, 18, 0) # 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) #endif #if !GTK_CHECK_VERSION (2, 20, 0) |