Source: clutter-gesture
Severity: normal
Tags: patch

We're looking at uploading clutter 1.10 into unstable reasonably soon.
Currently clutter-gesture doesn't compile with the new versions. Attached patch
makes it compile with both old and new clutter. 

Please apply so we don't need a source-ful upload when clutter is uploaded

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- clutter-gesture-0.0.2.1.orig/tests/test-events.c
+++ clutter-gesture-0.0.2.1/tests/test-events.c
@@ -247,7 +247,7 @@ input_cb (ClutterActor    *actor,
     case CLUTTER_DELETE:
 //      g_print ("[%s] DELETE", source);
       break;
-    case CLUTTER_NOTHING:
+    default:
       return FALSE;
     }
 
--- clutter-gesture-0.0.2.1.orig/tests/test_engine.c
+++ clutter-gesture-0.0.2.1/tests/test_engine.c
@@ -74,7 +74,9 @@ red_button_cb (ClutterActor    *actor,
   else
     IsMotion = TRUE;
 
-  clutter_set_motion_events_enabled (IsMotion);
+  clutter_stage_set_motion_events_enabled (
+    CLUTTER_STAGE (clutter_actor_get_stage (actor)),
+    IsMotion);
 
   g_print ("*** Per actor motion events %s ***\n",
            IsMotion ? "enabled" : "disabled");
@@ -208,7 +210,7 @@ input_cb (ClutterActor    *actor,
     case CLUTTER_DELETE:
       g_print ("[%s] DELETE", source);
       break;
-    case CLUTTER_NOTHING:
+    default:
       return FALSE;
     }
 

Reply via email to