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
commit33e27dc25f933a92566d91a667ba4ee732ba6cfa (patch)
tree69dcadbbe31ed447cd369be5ecef3a58d5a0b0dc /gtk/PlatGTK.cxx
parenta848e8165894cc4124635ea44b721f8eadf54354 (diff)
downloadscintilla-mirror-33e27dc25f933a92566d91a667ba4ee732ba6cfa.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 ffb04d005..064d5161a 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -2219,7 +2219,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) {