diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-16 22:26:44 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-16 22:38:04 +0800 |
commit | 3b7cad12fe7c90afee27e25b97a748e3195d5e88 (patch) | |
tree | bd27a50ce9ddaece392891e0ee31b900bf582a31 /src | |
parent | 775cada033b7430eadee1dedbef519c584b1f81b (diff) | |
download | gsoc2013-empathy-3b7cad12fe7c90afee27e25b97a748e3195d5e88.tar gsoc2013-empathy-3b7cad12fe7c90afee27e25b97a748e3195d5e88.tar.gz gsoc2013-empathy-3b7cad12fe7c90afee27e25b97a748e3195d5e88.tar.bz2 gsoc2013-empathy-3b7cad12fe7c90afee27e25b97a748e3195d5e88.tar.lz gsoc2013-empathy-3b7cad12fe7c90afee27e25b97a748e3195d5e88.tar.xz gsoc2013-empathy-3b7cad12fe7c90afee27e25b97a748e3195d5e88.tar.zst gsoc2013-empathy-3b7cad12fe7c90afee27e25b97a748e3195d5e88.zip |
CallWindow: move preview rectangles on top of remote video
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.c | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index c694d8d5c..295af9383 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -144,6 +144,10 @@ struct _EmpathyCallWindowPriv ClutterActor *preview_rectangle2; ClutterActor *preview_rectangle3; ClutterActor *preview_rectangle4; + ClutterActor *preview_rectangle_box1; + ClutterActor *preview_rectangle_box2; + ClutterActor *preview_rectangle_box3; + ClutterActor *preview_rectangle_box4; GtkWidget *video_container; GtkWidget *remote_user_avatar_widget; GtkWidget *remote_user_avatar_toolbar; @@ -394,6 +398,17 @@ empathy_call_window_prefs_volume_changed_cb (GSettings *settings, } static void +empathy_call_window_raise_actors (EmpathyCallWindow *self) +{ + clutter_actor_raise_top (self->priv->floating_toolbar); + + clutter_actor_raise_top (self->priv->preview_rectangle_box1); + clutter_actor_raise_top (self->priv->preview_rectangle_box2); + clutter_actor_raise_top (self->priv->preview_rectangle_box3); + clutter_actor_raise_top (self->priv->preview_rectangle_box4); +} + +static void empathy_call_window_show_video_output (EmpathyCallWindow *self, gboolean show) { @@ -402,7 +417,7 @@ empathy_call_window_show_video_output (EmpathyCallWindow *self, gtk_widget_set_visible (self->priv->remote_user_avatar_widget, !show); - clutter_actor_raise_top (self->priv->floating_toolbar); + empathy_call_window_raise_actors (self); } static void @@ -605,6 +620,7 @@ empathy_call_window_preview_hidden_button_clicked_cb (GtkButton *button, static ClutterActor * empathy_call_window_create_preview_rectangle (EmpathyCallWindow *self, + ClutterActor **box, ClutterBinAlignment x, ClutterBinAlignment y) { @@ -617,6 +633,8 @@ empathy_call_window_create_preview_rectangle (EmpathyCallWindow *self, box1 = clutter_box_new (layout1); + *box = box1; + rectangle = clutter_rectangle_new_with_color ( CLUTTER_COLOR_Transparent); @@ -659,15 +677,19 @@ empathy_call_window_create_preview_rectangles (EmpathyCallWindow *self) { self->priv->preview_rectangle1 = empathy_call_window_create_preview_rectangle (self, + &self->priv->preview_rectangle_box1, CLUTTER_BIN_ALIGNMENT_START, CLUTTER_BIN_ALIGNMENT_START); self->priv->preview_rectangle2 = empathy_call_window_create_preview_rectangle (self, + &self->priv->preview_rectangle_box2, CLUTTER_BIN_ALIGNMENT_START, CLUTTER_BIN_ALIGNMENT_END); self->priv->preview_rectangle3 = empathy_call_window_create_preview_rectangle (self, + &self->priv->preview_rectangle_box3, CLUTTER_BIN_ALIGNMENT_END, CLUTTER_BIN_ALIGNMENT_START); self->priv->preview_rectangle4 = empathy_call_window_create_preview_rectangle (self, + &self->priv->preview_rectangle_box4, CLUTTER_BIN_ALIGNMENT_END, CLUTTER_BIN_ALIGNMENT_END); } @@ -2789,7 +2811,7 @@ empathy_call_window_show_video_output_cb (gpointer user_data) { gtk_widget_hide (self->priv->remote_user_avatar_widget); clutter_actor_show (self->priv->video_output); - clutter_actor_raise_top (self->priv->floating_toolbar); + empathy_call_window_raise_actors (self); } return FALSE; |