aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-18 19:38:52 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-19 00:12:14 +0800
commitddc5879579652ace80965450d98178771a18b210 (patch)
tree64091638f56e1571161acfa2a86e0d09773cbb31 /src
parent33dab5dcf04b0f979c91e65373c9a7d89da014b3 (diff)
downloadgsoc2013-empathy-ddc5879579652ace80965450d98178771a18b210.tar
gsoc2013-empathy-ddc5879579652ace80965450d98178771a18b210.tar.gz
gsoc2013-empathy-ddc5879579652ace80965450d98178771a18b210.tar.bz2
gsoc2013-empathy-ddc5879579652ace80965450d98178771a18b210.tar.lz
gsoc2013-empathy-ddc5879579652ace80965450d98178771a18b210.tar.xz
gsoc2013-empathy-ddc5879579652ace80965450d98178771a18b210.tar.zst
gsoc2013-empathy-ddc5879579652ace80965450d98178771a18b210.zip
CallWindow: hide the preview button while dragging it
https://bugzilla.gnome.org/show_bug.cgi?id=656573
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index c13b11bbb..df52534b1 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -139,6 +139,7 @@ struct _EmpathyCallWindowPriv
* alive only during call. */
ClutterActor *video_output;
ClutterActor *video_preview;
+ ClutterActor *preview_shown_button;
ClutterActor *preview_hidden_button;
ClutterActor *preview_rectangle1;
ClutterActor *preview_rectangle2;
@@ -892,6 +893,7 @@ empathy_call_window_preview_on_drag_begin_cb (ClutterDragAction *action,
clutter_drag_action_set_drag_handle (action, preview);
clutter_actor_set_opacity (actor, 0);
+ clutter_actor_hide (self->priv->preview_shown_button);
empathy_call_window_show_preview_rectangles (self, TRUE);
empathy_call_window_darken_preview_rectangles (self);
@@ -917,6 +919,7 @@ empathy_call_window_preview_on_drag_end_cb (ClutterDragAction *action,
clutter_actor_destroy (preview);
clutter_actor_set_opacity (actor, 255);
+ clutter_actor_show (self->priv->preview_shown_button);
if (pos != PREVIEW_POS_NONE)
empathy_call_window_move_video_preview (self, pos);
@@ -1036,7 +1039,8 @@ create_video_preview (EmpathyCallWindow *self)
/* Translators: this is an "Info" label. It should be as short
* as possible. */
button = gtk_button_new_with_label (_("i"));
- b = gtk_clutter_actor_new_with_contents (button);
+ priv->preview_shown_button = b =
+ gtk_clutter_actor_new_with_contents (button);
layout_end = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_END,
CLUTTER_BIN_ALIGNMENT_END);