diff options
author | nyamatongwe <devnull@localhost> | 2012-04-29 14:25:41 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2012-04-29 14:25:41 +1000 |
commit | 47f9fbb7106a4cb6a5f275c04043dc83a105afaf (patch) | |
tree | bb759fb063125984a7786aefaac663956900ef45 | |
parent | bbfa008ef83233ccf5ecc1bc2834d90c29f076b8 (diff) | |
download | scintilla-mirror-47f9fbb7106a4cb6a5f275c04043dc83a105afaf.tar.gz |
Fix deprecation warning for GTK+ 3.4.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index f40f11494..178c591d8 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2000,7 +2000,12 @@ gint ScintillaGTK::Motion(GtkWidget *widget, GdkEventMotion *event) { int y = 0; GdkModifierType state; if (event->is_hint) { +#if GTK_CHECK_VERSION(3,0,0) + gdk_window_get_device_position(event->window, + event->device, &x, &y, &state); +#else gdk_window_get_pointer(event->window, &x, &y, &state); +#endif } else { x = static_cast<int>(event->x); y = static_cast<int>(event->y); |