aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-call-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-18 19:34:05 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-19 00:12:14 +0800
commit33dab5dcf04b0f979c91e65373c9a7d89da014b3 (patch)
treef60e519c639d39cdfb3d45884817b68937ce97d0 /src/empathy-call-window.c
parent3f60db5fb3b3c80440d381e3a8fc1a52e1da700a (diff)
downloadgsoc2013-empathy-33dab5dcf04b0f979c91e65373c9a7d89da014b3.tar
gsoc2013-empathy-33dab5dcf04b0f979c91e65373c9a7d89da014b3.tar.gz
gsoc2013-empathy-33dab5dcf04b0f979c91e65373c9a7d89da014b3.tar.bz2
gsoc2013-empathy-33dab5dcf04b0f979c91e65373c9a7d89da014b3.tar.lz
gsoc2013-empathy-33dab5dcf04b0f979c91e65373c9a7d89da014b3.tar.xz
gsoc2013-empathy-33dab5dcf04b0f979c91e65373c9a7d89da014b3.tar.zst
gsoc2013-empathy-33dab5dcf04b0f979c91e65373c9a7d89da014b3.zip
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
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r--src/empathy-call-window.c4
1 files changed, 4 insertions, 0 deletions
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);