libui/redo/unix/util.c

31 lines
443 B
C
Raw Normal View History

2015-04-22 16:54:05 -05:00
// 18 april 2015
#include "uipriv_unix.h"
void complain(const char *fmt, ...)
{
va_list ap;
char *msg;
2015-04-22 16:54:05 -05:00
va_start(ap, fmt);
msg = g_strdup_vprintf(fmt, ap);
2015-04-22 16:54:05 -05:00
va_end(ap);
g_error("[libui] %s\n", msg);
2015-04-22 16:54:05 -05:00
}
2015-06-15 21:36:49 -05:00
uiSizing *uiUnixNewSizing(void)
{
uiSizing *d;
d = uiNew(uiSizing);
d->XPadding = gtkXPadding;
d->YPadding = gtkYPadding;
d->Sys = uiNew(uiSizingSys);
return d;
}
void uiFreeSizing(uiSizing *d)
{
uiFree(d->Sys);
uiFree(d);
}