libui/redo/unix/util.c

34 lines
489 B
C

// 18 april 2015
#include "uipriv_unix.h"
void complain(const char *fmt, ...)
{
va_list ap;
char *msg;
va_start(ap, fmt);
msg = g_strdup_vprintf(fmt, ap);
va_end(ap);
g_error("[libui] %s\n", msg);
}
#define gtkXPadding 12
#define gtkYPadding 6
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);
}