From a8db6ab73ee8808c0c4311d4c47a67ac2153042c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 28 Apr 2011 14:29:56 +0000 Subject: [PATCH] Use correct GTK macro in wx_gtk_widget_get_sensitive(). 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/gtk/private/gtk2-compat.h b/include/wx/gtk/private/gtk2-compat.h index 48ea9e4be0..0f8007e4dd 100644 --- a/include/wx/gtk/private/gtk2-compat.h +++ b/include/wx/gtk/private/gtk2-compat.h @@ -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 -- 2.49.0