summaryrefslogtreecommitdiff
path: root/new/container_unix.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-07 13:58:50 -0400
committerPietro Gagliardi <[email protected]>2015-04-07 13:58:50 -0400
commit3c427ed799eb3a58f5d442e19e4f4cd6f844b79a (patch)
tree01888c4ad99201a8298e61d55ae7f313f91ca0d3 /new/container_unix.c
parent205cc9c2cf3fa99dbe9a95b60b5a46dcfb77fb0d (diff)
Implemented uiButton on GTK+. All we need to do is get it to show up...
Diffstat (limited to 'new/container_unix.c')
-rw-r--r--new/container_unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/new/container_unix.c b/new/container_unix.c
index d961d02..099944b 100644
--- a/new/container_unix.c
+++ b/new/container_unix.c
@@ -39,7 +39,8 @@ static void uiContainer_size_allocate(GtkWidget *widget, GtkAllocation *allocati
gtk_widget_set_allocation(widget, allocation);
c = uiContainer(widget)->child;
- (*(c->resize))(c, allocation->x, allocation->y, allocation->width, allocation->height, &d);
+ if (c != NULL)
+ (*(c->resize))(c, allocation->x, allocation->y, allocation->width, allocation->height, &d);
}
struct forall {