From 3c427ed799eb3a58f5d442e19e4f4cd6f844b79a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 13:58:50 -0400 Subject: Implemented uiButton on GTK+. All we need to do is get it to show up... --- new/container_unix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'new/container_unix.c') 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 { -- cgit v1.2.3