[gnome-control-center/gnome-3-10] wacom: Fix first animation of calibration UI



commit cf66f61e0307eadf9b17cd912f0358f6220ab151
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Nov 29 15:26:18 2013 +0100

    wacom: Fix first animation of calibration UI
    
    The "target" was seen moving from 0,0 to the first calibration
    point, so 1) avoid target relayouts when the window is still
    being positioned and 2) start the "target" actor as hidden so
    it isn't seen moving from anywhere when first shown.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719698

 panels/wacom/calibrator/calibrator-gui.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/wacom/calibrator/calibrator-gui.c b/panels/wacom/calibrator/calibrator-gui.c
index 89e2311..b073887 100644
--- a/panels/wacom/calibrator/calibrator-gui.c
+++ b/panels/wacom/calibrator/calibrator-gui.c
@@ -145,6 +145,9 @@ on_allocation_changed (ClutterActor          *actor,
                        ClutterAllocationFlags flags,
                        CalibArea             *area)
 {
+  if (!gtk_widget_is_visible (area->window))
+    return;
+
   resize_display (area);
 }
 
@@ -522,6 +525,8 @@ set_up_stage (CalibArea *calib_area, ClutterActor *stage)
 
   clutter_stage_set_use_alpha (CLUTTER_STAGE (stage), TRUE);
 
+  clutter_actor_hide (calib_area->target);
+
   /* bind the action layer's geometry to the stage's */
   clutter_actor_add_constraint (calib_area->action_layer,
                                 clutter_bind_constraint_new (stage,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]