diff options
Diffstat (limited to 'src/ug.c')
-rw-r--r-- | src/ug.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -109,6 +109,16 @@ UG_API int ug_init(Display *disp, Window xid, void *win, enum ug_option opt) return ugman_init(disp, xid, win, opt); } +#else +UG_API int ug_init(void *win, enum ug_option opt) +{ + if (opt < UG_OPT_INDICATOR_ENABLE || opt >= UG_OPT_MAX) { + _ERR("ug_init() failed: Invalid option"); + return -1; + } + + return ugman_init(win, opt); +} #endif UG_API int ug_init_efl(Evas_Object *win, enum ug_option opt) |