[empathy/gnome-3-4] Keep some margin for the preview and the floating toolbar



commit 0343d38411f58086366190100521c6a847985c13
Author: Sjoerd Simons <sjoerd luon net>
Date:   Mon May 21 10:00:21 2012 +0200

    Keep some margin for the preview and the floating toolbar
    
    Now that the video box is flush against the sides add some extra margin
    for the things floating inside.

 src/empathy-call-window.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 23c250d..7577abd 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -75,6 +75,7 @@
 
 #define CONTENT_HBOX_SPACING 3
 #define CONTENT_HBOX_CHILDREN_PACKING_PADDING 0
+#define OVERLAY_MARGIN 6
 
 #define SELF_VIDEO_SECTION_WIDTH 120
 #define SELF_VIDEO_SECTION_HEIGHT 90
@@ -1550,6 +1551,8 @@ empathy_call_window_init (EmpathyCallWindow *self)
   ClutterActor *remote_avatar;
   GtkCssProvider *provider;
   ClutterColor black = { 0, 0, 0, 0 };
+  ClutterMargin overlay_margin = { OVERLAY_MARGIN, OVERLAY_MARGIN,
+    OVERLAY_MARGIN, OVERLAY_MARGIN };
 
   priv = self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
     EMPATHY_TYPE_CALL_WINDOW, EmpathyCallWindowPriv);
@@ -1683,7 +1686,10 @@ empathy_call_window_init (EmpathyCallWindow *self)
   priv->overlay_layout = clutter_box_layout_new ();
   clutter_box_layout_set_vertical (
       CLUTTER_BOX_LAYOUT (priv->overlay_layout), TRUE);
-  priv->overlay_box = clutter_box_new (priv->overlay_layout);
+  priv->overlay_box = clutter_actor_new ();
+  clutter_actor_set_layout_manager (priv->overlay_box, priv->overlay_layout);
+
+  clutter_actor_set_margin (priv->overlay_box, &overlay_margin);
 
   clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (priv->video_layout),
       priv->overlay_box,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]