]> git.0d.be Git - empathy.git/commitdiff
CallWindow: hide the preview button while dragging it
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 18 Aug 2011 11:38:52 +0000 (12:38 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 18 Aug 2011 16:12:14 +0000 (17:12 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=656573

src/empathy-call-window.c

index c13b11bbbd40f89eb1c4c059807a995c53ca6626..df52534b13e27e742f8960644c41d29240954f79 100644 (file)
@@ -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);