Пример #1
0
static gboolean
green_press_cb (ClutterActor    *actor,
                ClutterEvent    *event,
                gpointer         data)
{
  clutter_set_motion_events_enabled (!clutter_get_motion_events_enabled ());

  g_print ("per actor motion events are now %s\n",
           clutter_get_motion_events_enabled () ? "enabled" : "disabled");

  return FALSE;
}
Пример #2
0
IO_METHOD(IoClutter, motionEventsEnabled) {
    return IOBOOL(self, clutter_get_motion_events_enabled());
}