]> git.0d.be Git - empathy.git/commitdiff
CallWindow: hide the preview while dragging it
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 18 Aug 2011 11:34:05 +0000 (12:34 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 18 Aug 2011 16:12:14 +0000 (17:12 +0100)
We show a clone of it moving through the stage, so there's no
point in showing the main preview at the same time.

https://bugzilla.gnome.org/show_bug.cgi?id=656573

src/empathy-call-window.c

index 825aa0e6d8bbf9102bb4f822430baae3d36c1ffc..c13b11bbbd40f89eb1c4c059807a995c53ca6626 100644 (file)
@@ -891,6 +891,8 @@ empathy_call_window_preview_on_drag_begin_cb (ClutterDragAction *action,
 
   clutter_drag_action_set_drag_handle (action, preview);
 
+  clutter_actor_set_opacity (actor, 0);
+
   empathy_call_window_show_preview_rectangles (self, TRUE);
   empathy_call_window_darken_preview_rectangles (self);
 }
@@ -914,6 +916,8 @@ empathy_call_window_preview_on_drag_end_cb (ClutterDragAction *action,
   /* Destroy the video preview copy that we were dragging */
   clutter_actor_destroy (preview);
 
+  clutter_actor_set_opacity (actor, 255);
+
   if (pos != PREVIEW_POS_NONE)
     empathy_call_window_move_video_preview (self, pos);