blob: 60abc9198ee179beb38cfbeae8ce80ea848716b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// 6 april 2015
#include "uipriv_unix.h"
struct uiInitError {
GError *err;
};
uiInitOptions options;
uiInitError *uiInit(uiInitOptions *o)
{
uiInitError *err;
options = *o;
err = uiNew(uiInitError);
if (gtk_init_with_args(NULL, NULL, NULL, NULL, NULL, &(err->err)) == FALSE)
return err;
uiFree(err);
return NULL;
}
const char *uiInitErrorMessage(uiInitError *err)
{
return err->err->message;
}
void uiInitErrorFree(uiInitError *err)
{
g_error_free(err->err);
uiFree(err);
}
|