diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-08-01 13:41:40 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-08-01 13:41:40 +0000 |
commit | 1cd8b5b0cc7b43eaf3a8e2ca64033615abcb54cc (patch) | |
tree | e2e09b2b1cd6c7792b81d794996483acd4874f75 /ui/gtk/old-gtk-compat.h | |
parent | 2303b8dcfcf76d98c8e98c3feafe778267a1415e (diff) |
Get rid of some GTK_CHECK_VERSION instances by using compabillity macros.
svn path=/trunk/; revision=44186
Diffstat (limited to 'ui/gtk/old-gtk-compat.h')
-rw-r--r-- | ui/gtk/old-gtk-compat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/gtk/old-gtk-compat.h b/ui/gtk/old-gtk-compat.h index 38816574e9..ceec1146a8 100644 --- a/ui/gtk/old-gtk-compat.h +++ b/ui/gtk/old-gtk-compat.h @@ -56,6 +56,8 @@ # 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) +# define gtk_widget_set_can_default(w,y) if(y==TRUE){GTK_WIDGET_SET_FLAGS (w, GTK_CAN_DEFAULT);}else{GTK_WIDGET_UNSET_FLAGS (w, GTK_CAN_DEFAULT);} +# define gtk_widget_set_can_focus(w,y) if(y==TRUE){GTK_WIDGET_SET_FLAGS (w, GTK_CAN_FOCUS);}else{GTK_WIDGET_UNSET_FLAGS (w, GTK_CAN_FOCUS);} #endif #if !GTK_CHECK_VERSION (2, 20, 0) |