[SCM] calf/master: + Curve widget: do not use gdk_event_request_motions on GTK+ older than 2.12.0

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:38:54 UTC 2013


The following commit has been merged in the master branch:
commit 3282f75df8e42a0de7789209503eca270a53dd91
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Tue Jan 20 22:53:24 2009 +0000

    + Curve widget: do not use gdk_event_request_motions on GTK+ older than 2.12.0

diff --git a/src/ctl_curve.cpp b/src/ctl_curve.cpp
index 99f36c1..d721ecd 100644
--- a/src/ctl_curve.cpp
+++ b/src/ctl_curve.cpp
@@ -203,7 +203,15 @@ calf_curve_pointer_motion (GtkWidget *widget, GdkEventMotion *event)
 {
     g_assert(CALF_IS_CURVE(widget));
     if (event->is_hint)
+    {
+#if GTK_CHECK_VERSION(2,12,0)
         gdk_event_request_motions(event);
+#else
+        int a, b;
+        GdkModifierType mod;
+        gdk_window_get_pointer (event->window, &a, &b, (GdkModifierType*)&mod);
+#endif
+    }
     CalfCurve *self = CALF_CURVE(widget);
     if (self->cur_pt != -1)
     {

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list