diff options
| author | nyamatongwe <devnull@localhost> | 2015-06-04 10:51:50 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2015-06-04 10:51:50 +1000 |
| commit | 080518cb7bcc5411cff3d8c4d6328bc3a27b3ad4 (patch) | |
| tree | b6f6a54633430951414d8eb58369a9a04d01cc84 /gtk/PlatGTK.cxx | |
| parent | d8b790d96206c7c7f402b642ff908452107a69fc (diff) | |
| download | scintilla-mirror-080518cb7bcc5411cff3d8c4d6328bc3a27b3ad4.tar.gz | |
Restored compatibility with GTK+ 2.18 for cursor calls.
Diffstat (limited to 'gtk/PlatGTK.cxx')
| -rw-r--r-- | gtk/PlatGTK.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index f91fbdbe0..742f4ce9b 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1338,10 +1338,14 @@ void Window::SetCursor(Cursor curs) { return; cursorLast = curs; +#if GTK_CHECK_VERSION(2,24,0) GdkWindow *pwin = WindowFromWidget(PWidget(wid)); if (!pwin) return; GdkDisplay *pdisplay = gdk_window_get_display(pwin); +#else + GdkDisplay *pdisplay = gdk_display_get_default(); +#endif if (!pdisplay) return; |
