diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-15 19:46:24 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-15 19:46:24 -0400 |
| commit | a25f49e7e6a15e4c27c51dea65df67ed3bfa7163 (patch) | |
| tree | 79df47b53cd4336af49d1615e8276cfacec45a15 /new/unix/newcontrol.c | |
| parent | bb0c52ee4ea98b679dba89e8988bd960d12c737a (diff) | |
Started doing conversion of the GTK+ backend...
Diffstat (limited to 'new/unix/newcontrol.c')
| -rw-r--r-- | new/unix/newcontrol.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/new/unix/newcontrol.c b/new/unix/newcontrol.c index 500798b..395e93b 100644 --- a/new/unix/newcontrol.c +++ b/new/unix/newcontrol.c @@ -159,16 +159,14 @@ static void singleContainerDisable(uiControl *c) static void onDestroy(GtkWidget *widget, gpointer data) { - uiControl *c = (uiControl *) data; + uiControl *c = uiControl(data); singleWidget *s = (singleWidget *) (c->internal); uiFree(s); - uiFree(c); } -uiControl *uiUnixNewControl(GType type, gboolean inScrolledWindow, gboolean scrolledWindowHasBorder, const char *firstProperty, ...) +void uiUnixNewControl(uiControl *c, GType type, gboolean inScrolledWindow, gboolean scrolledWindowHasBorder, const char *firstProperty, ...) { - uiControl *c; singleWidget *s; va_list ap; @@ -201,7 +199,6 @@ uiControl *uiUnixNewControl(GType type, gboolean inScrolledWindow, gboolean scro // this also ensures singleRemoveParent() works properly g_object_ref_sink(s->immediate); - c = uiNew(uiControl); // assign s later; we still need it for one more thing c->destroy = singleDestroy; c->handle = singleHandle; |
