summaryrefslogtreecommitdiff
path: root/new/button_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/button_unix.c')
-rw-r--r--new/button_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/new/button_unix.c b/new/button_unix.c
index 2d341cc..9c6fa2b 100644
--- a/new/button_unix.c
+++ b/new/button_unix.c
@@ -26,7 +26,7 @@ uiControl *uiNewButton(const char *text)
GParameter props[1];
GtkWidget *widget;
- b = g_new0(struct button, 1);
+ b = uiNew(struct button);
props[0].name = "label";
g_value_init(&(props[0].value), G_TYPE_STRING);