]> git.0d.be Git - empathy.git/commitdiff
Keep some margin for the preview and the floating toolbar
authorSjoerd Simons <sjoerd@luon.net>
Mon, 21 May 2012 08:00:21 +0000 (10:00 +0200)
committerSjoerd Simons <sjoerd@luon.net>
Mon, 21 May 2012 11:54:00 +0000 (13:54 +0200)
Now that the video box is flush against the sides add some extra margin
for the things floating inside.

src/empathy-call-window.c

index 23c250dca254a2f07354d6600d86372f6e6de730..7577abd1179ec7fcd02327b1eca1bb377f7c625f 100644 (file)
@@ -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,