aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-09-09 23:44:33 +1000
committernyamatongwe <devnull@localhost>2011-09-09 23:44:33 +1000
commit87e2aa1fff7ab0cf0646499b42687a5b00fbf6b4 (patch)
tree32fd8cd9f421878e81f0ea68615a1c6b4b1bc605 /gtk/PlatGTK.cxx
parent805ac5c8cfe689a56c762dd0f1fd7f83c9434e6d (diff)
downloadscintilla-mirror-87e2aa1fff7ab0cf0646499b42687a5b00fbf6b4.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) {