From d7c83fa38cb8ce5f60e8fc7a8781ddc1f21a5acc Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Tue, 16 Aug 2011 00:41:56 +0100 Subject: Display the preview video button in the preview corner https://bugzilla.gnome.org/show_bug.cgi?id=656571 --- src/empathy-call-window.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index b56613ca5..5bcf4644a 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -931,7 +931,7 @@ static void create_video_preview (EmpathyCallWindow *self) { EmpathyCallWindowPriv *priv = GET_PRIV (self); - ClutterLayoutManager *layout, *layout_center; + ClutterLayoutManager *layout, *layout_center, *layout_end; ClutterActor *preview; ClutterActor *box; ClutterActor *b; @@ -986,10 +986,15 @@ create_video_preview (EmpathyCallWindow *self) button = gtk_button_new_with_label (_("i")); b = gtk_clutter_actor_new_with_contents (button); - clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (layout_center), - b, - CLUTTER_BIN_ALIGNMENT_END, + layout_end = clutter_bin_layout_new (CLUTTER_BIN_ALIGNMENT_END, CLUTTER_BIN_ALIGNMENT_END); + box = clutter_box_new (layout_end); + clutter_actor_set_size (box, + SELF_VIDEO_SECTION_WIDTH, + SELF_VIDEO_SECTION_HEIGTH + SELF_VIDEO_SECTION_MARGIN); + + clutter_container_add_actor (CLUTTER_CONTAINER (box), b); + clutter_container_add_actor (CLUTTER_CONTAINER (priv->video_preview), box); g_signal_connect (button, "clicked", G_CALLBACK (empathy_call_window_preview_button_clicked_cb), -- cgit v1.2.3