2015-04-22 16:54:05 -05:00
|
|
|
// 18 april 2015
|
|
|
|
#include "uipriv_unix.h"
|
|
|
|
|
|
|
|
void complain(const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
2015-05-07 18:34:45 -05:00
|
|
|
char *msg;
|
2015-04-22 16:54:05 -05:00
|
|
|
|
|
|
|
va_start(ap, fmt);
|
2015-05-07 18:34:45 -05:00
|
|
|
msg = g_strdup_vprintf(fmt, ap);
|
2015-04-22 16:54:05 -05:00
|
|
|
va_end(ap);
|
2015-05-07 18:34:45 -05:00
|
|
|
g_error("[libui] %s\n", msg);
|
2015-04-22 16:54:05 -05:00
|
|
|
}
|
2015-06-15 21:36:49 -05:00
|
|
|
|
2015-08-27 17:40:00 -05:00
|
|
|
void setMargined(GtkContainer *c, int margined)
|
2015-06-15 21:36:49 -05:00
|
|
|
{
|
2015-08-28 09:30:42 -05:00
|
|
|
if (margined)
|
2015-08-27 17:40:00 -05:00
|
|
|
gtk_container_set_border_width(c, gtkXMargin);
|
|
|
|
else
|
|
|
|
gtk_container_set_border_width(c, 0);
|
2015-06-15 21:36:49 -05:00
|
|
|
}
|