diff options
| author | nyamatongwe <devnull@localhost> | 2011-09-09 23:44:33 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2011-09-09 23:44:33 +1000 |
| commit | d214500ee10fe9830cdc36d0b039d49ef86e26de (patch) | |
| tree | 2e1185b8fb880bed6874b999160b169de7c9d337 /gtk/PlatGTK.cxx | |
| parent | fd2fe455c43dfe2d165d99cb9efcffbb06cb04ca (diff) | |
| download | scintilla-mirror-d214500ee10fe9830cdc36d0b039d49ef86e26de.tar.gz | |
Update deprecated calls to GTK+ 3 maintained functions.
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 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) { |
