diff options
| author | nyamatongwe <unknown> | 2015-09-05 08:55:21 +1000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2015-09-05 08:55:21 +1000 |
| commit | 987242ff2c26b1f2223679407eeb5d848f019b66 (patch) | |
| tree | b71fb76b09b30bd65716c84654f7fee13a89c81c /gtk/PlatGTK.cxx | |
| parent | 521eab3c0d76888cca009ce85b7554731cf5ba1f (diff) | |
| download | scintilla-mirror-987242ff2c26b1f2223679407eeb5d848f019b66.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.cxx | 8 |
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() { |
