libui/unix/util.c

22 lines
370 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
void setMargined(GtkContainer *c, int margined)
2015-06-15 21:36:49 -05:00
{
if (margined)
gtk_container_set_border_width(c, gtkXMargin);
else
gtk_container_set_border_width(c, 0);
2015-06-15 21:36:49 -05:00
}