]> git.saurik.com Git - wxWidgets.git/commitdiff
Use correct GTK macro in wx_gtk_widget_get_sensitive().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Apr 2011 14:29:56 +0000 (14:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Apr 2011 14:29:56 +0000 (14:29 +0000)
Using GTK_WIDGET_VISIBLE() to test for sensitivity was not going to work (and,
in fact, it didn't and broke the unit tests).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/private/gtk2-compat.h

index 48ea9e4be01c3000d9b3c4388e53d179fd310b32..0f8007e4ddd74a5df64c5cfd5f2387e8a3048e57 100644 (file)
@@ -235,7 +235,7 @@ inline gboolean wx_gtk_widget_get_visible(GtkWidget *widget)
 
 inline gboolean wx_gtk_widget_get_sensitive(GtkWidget *widget)
 {
-    return GTK_WIDGET_VISIBLE(widget);
+    return GTK_WIDGET_SENSITIVE(widget);
 }
 #define gtk_widget_get_sensitive wx_gtk_widget_get_sensitive