From 33dab5dcf04b0f979c91e65373c9a7d89da014b3 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Thu, 18 Aug 2011 12:34:05 +0100 Subject: CallWindow: hide the preview while dragging it 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 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 825aa0e6d..c13b11bbb 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -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); -- cgit v1.2.3