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



commit c78e22b9115c5257bd2053970980d92daa696979
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 d64d9f3..9f93bad 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);
 }
 
@@ -525,6 +528,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]