2015-04-06 11:20:51 -05:00
|
|
|
// 6 april 2015
|
2015-04-06 23:26:27 -05:00
|
|
|
#include "uipriv_unix.h"
|
2015-04-06 11:20:51 -05:00
|
|
|
|
2015-04-09 21:38:11 -05:00
|
|
|
uiInitOptions options;
|
|
|
|
|
2015-04-10 15:54:06 -05:00
|
|
|
const char *uiInit(uiInitOptions *o)
|
2015-04-06 11:20:51 -05:00
|
|
|
{
|
2015-04-10 15:54:06 -05:00
|
|
|
GError *err = NULL;
|
|
|
|
const char *msg;
|
2015-04-06 11:20:51 -05:00
|
|
|
|
2015-04-09 21:38:11 -05:00
|
|
|
options = *o;
|
2015-04-10 15:54:06 -05:00
|
|
|
if (gtk_init_with_args(NULL, NULL, NULL, NULL, NULL, &err) == FALSE) {
|
|
|
|
msg = g_strdup(err->message);
|
|
|
|
g_error_free(err);
|
|
|
|
return msg;
|
|
|
|
}
|
2015-04-06 11:20:51 -05:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2015-04-10 15:54:06 -05:00
|
|
|
void uiFreeInitError(const char *err)
|
2015-04-06 11:20:51 -05:00
|
|
|
{
|
2015-04-10 15:54:06 -05:00
|
|
|
g_free((gpointer) err);
|
2015-04-06 11:20:51 -05:00
|
|
|
}
|