[empathy] CallWindow: hide the preview while dragging it
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] CallWindow: hide the preview while dragging it
- Date: Thu, 18 Aug 2011 16:17:12 +0000 (UTC)
commit 33dab5dcf04b0f979c91e65373c9a7d89da014b3
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Thu Aug 18 12:34:05 2011 +0100
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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 825aa0e..c13b11b 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]