aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-09-09 23:44:33 +1000
committernyamatongwe <unknown>2011-09-09 23:44:33 +1000
commita7b0ced39bdf5665c6a7fa4c3a04f449920237e0 (patch)
tree66b4cf693c2bdd4b7aef866572a8f79576d576f9 /gtk/PlatGTK.cxx
parentda8195f1ad86832a81426d67a8ab7fc9ad56246c (diff)
downloadscintilla-mirror-a7b0ced39bdf5665c6a7fa4c3a04f449920237e0.tar.gz
Update deprecated calls to GTK+ 3 maintained functions.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index 8fe55145a..90f5c07fe 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -2222,7 +2222,11 @@ void Window::SetCursor(Cursor curs) {
if (WindowFromWidget(PWidget(wid)))
gdk_window_set_cursor(WindowFromWidget(PWidget(wid)), gdkCurs);
+#if GTK_CHECK_VERSION(3,0,0)
+ g_object_unref(gdkCurs);
+#else
gdk_cursor_unref(gdkCurs);
+#endif
}
void Window::SetTitle(const char *s) {