summaryrefslogtreecommitdiff
path: root/new/container_unix.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-09 15:30:24 -0400
committerPietro Gagliardi <[email protected]>2015-04-09 15:30:24 -0400
commit8d64f695e0c34d6801bc9422f7a56ddca7df5b81 (patch)
tree5b9b3947ff2dd97ec44e030b13765703facf0b75 /new/container_unix.c
parent8e0cd27605149f16141470ad49dd71e26598223e (diff)
Implemented the foundation for padding.
Diffstat (limited to 'new/container_unix.c')
-rw-r--r--new/container_unix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/new/container_unix.c b/new/container_unix.c
index d393273..bb0cbb8 100644
--- a/new/container_unix.c
+++ b/new/container_unix.c
@@ -57,6 +57,8 @@ static void uiContainer_remove(GtkContainer *container, GtkWidget *widget)
#define gtkXMargin 12
#define gtkYMargin 12
+#define gtkXPadding 12
+#define gtkYPadding 6
static void uiContainer_size_allocate(GtkWidget *widget, GtkAllocation *allocation)
{
@@ -77,6 +79,8 @@ static void uiContainer_size_allocate(GtkWidget *widget, GtkAllocation *allocati
width -= 2 * gtkXMargin;
height -= 2 * gtkYMargin;
}
+ d.xPadding = gtkXPadding;
+ d.yPadding = gtkYPadding;
(*(c->child->resize))(c->child, x, y, width, height, &d);
}