Deprecate clutter_redraw()
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 10 Oct 2011 14:48:43 +0000 (15:48 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 10 Oct 2011 14:48:43 +0000 (15:48 +0100)
It's just a badly named proxy to clutter_stage_ensure_redraw().

clutter/clutter-main.c
clutter/clutter-main.h
tests/interactive/test-stage-read-pixels.c

index 4bb150b..7ef9edb 100644 (file)
@@ -258,6 +258,8 @@ clutter_get_accessibility_enabled (void)
  *
  * This function should only be used by libraries integrating Clutter from
  * within another toolkit.
+ *
+ * Deprecated: 1.10: Use clutter_stage_ensure_redraw() instead.
  */
 void
 clutter_redraw (ClutterStage *stage)
@@ -2299,7 +2301,7 @@ _clutter_process_event_details (ClutterActor        *stage,
     }
 }
 
-/**
+/*
  * _clutter_process_event
  * @event: a #ClutterEvent.
  *
index a99a694..3ddc263 100644 (file)
@@ -96,7 +96,10 @@ void             clutter_main                       (void);
 void             clutter_main_quit                  (void);
 gint             clutter_main_level                 (void);
 
-void             clutter_redraw                     (ClutterStage *stage);
+#ifndef CLUTTER_DISABLE_DEPRECATED
+void             clutter_redraw                     (ClutterStage *stage)
+                                                    G_GNUC_DEPRECATED_FOR (clutter_stage_ensure_redraw);
+#endif
 
 void             clutter_do_event                   (ClutterEvent *event);
 
index 783b226..b49afc6 100644 (file)
@@ -79,9 +79,10 @@ on_motion_idle (gpointer user_data)
                               x + TEX_SIZE / 2 - 1,
                              y + TEX_SIZE / 2 - 1);
   clutter_actor_show (data->box);
+
   /* Redraw so that the layouting will be done and the box will be
      drawn in the right position */
-  clutter_redraw (CLUTTER_STAGE (data->stage));
+  clutter_stage_ensure_redraw (CLUTTER_STAGE (data->stage));
 
   pixels = clutter_stage_read_pixels (CLUTTER_STAGE (data->stage),
                                      x, y,