aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2015-09-05 08:55:21 +1000
committernyamatongwe <devnull@localhost>2015-09-05 08:55:21 +1000
commitb978f682f51c611a8955d57655755b86d74b28a1 (patch)
tree43d23e79605658f70ddf29bdb7344d64910fbc3f /gtk/PlatGTK.cxx
parent3dc404cbf409efeb8eb3bdcd38d21e5a218454a3 (diff)
downloadscintilla-mirror-b978f682f51c611a8955d57655755b86d74b28a1.tar.gz
With the minimum GTK+ version now 2.18, remove #if conditions required for older
versions of GTK+.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index c63583cf3..3cb81ceab 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -42,12 +42,6 @@
#include "Converter.h"
-#if GTK_CHECK_VERSION(2,20,0)
-#define IS_WIDGET_FOCUSSED(w) (gtk_widget_has_focus(GTK_WIDGET(w)))
-#else
-#define IS_WIDGET_FOCUSSED(w) (GTK_WIDGET_HAS_FOCUS(w))
-#endif
-
static const double kPi = 3.14159265358979323846;
// The Pango version guard for pango_units_from_double and pango_units_to_double
@@ -1246,7 +1240,7 @@ void Window::Destroy() {
}
bool Window::HasFocus() {
- return IS_WIDGET_FOCUSSED(wid);
+ return gtk_widget_has_focus(GTK_WIDGET(wid));
}
PRectangle Window::GetPosition() {