diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-07 19:47:44 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-07 19:47:44 -0400 |
| commit | 89643f70f73e76d8b6484255c3460757715ceeb5 (patch) | |
| tree | 6c764526c2d4313d21524255bf9849b87c4b9d09 /new/ui_unix.h | |
| parent | 12021269b7789a680bf1286616505a7546f26d93 (diff) | |
Changed the GTK+ new control system from using g_object_newv() to using g_object_new_valist() due to weird crashes.
Diffstat (limited to 'new/ui_unix.h')
| -rw-r--r-- | new/ui_unix.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/new/ui_unix.h b/new/ui_unix.h index 19e8180..06b6ed8 100644 --- a/new/ui_unix.h +++ b/new/ui_unix.h @@ -8,10 +8,11 @@ This file assumes that you have included <gtk/gtk.h> and "ui.h" beforehand. It p #define __UI_UI_UNIX_H__ // uiUnixNewControl() creates a new uiControl with the given GTK+ control inside. -// The first three parameters are used for creating the control itself and are the same as passed to g_object_newv(). +// The first parameter is the type of the control, as passed to the first argument of g_object_new(). // The three scrolledWindow parameters allow placing scrollbars on the new control. // The data parameter can be accessed with uiUnixControlData(). -extern uiControl *uiUnixNewControl(GType type, guint nConstructParams, GParameter *constructParams, gboolean inScrolledWindow, gboolean needsViewport, gboolean scrolledWindowHasBorder, void *data); +// The firstProperty parameter and beyond allow passing construct properties to the new control, as with g_object_new(); end this list with NULL. +extern uiControl *uiUnixNewControl(GType type, gboolean inScrolledWindow, gboolean needsViewport, gboolean scrolledWindowHasBorder, void *data, const char *firstProperty, ...); extern void *uiUnixControlData(uiControl *c); #endif |
