diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2015-05-11 15:53:13 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2015-05-11 15:56:02 +0900 |
commit | 56b6988a26a031e594e36dceb3b33ccbe761f8be (patch) | |
tree | 9c8f6f53ae44c39382e112e746ffecc226d54b27 /src/manager.c | |
parent | 7314bcb19f465f1d4ce015bdb1baccb455c0b9df (diff) | |
download | ui-gadget-1-56b6988a26a031e594e36dceb3b33ccbe761f8be.tar.gz ui-gadget-1-56b6988a26a031e594e36dceb3b33ccbe761f8be.tar.bz2 ui-gadget-1-56b6988a26a031e594e36dceb3b33ccbe761f8be.zip |
add codes to support wayland profile.submit/tizen/20150511.111505accepted/tizen/wearable/20150511.132837accepted/tizen/tv/20150512.050609accepted/tizen/mobile/20150512.024300accepted/tizen/common/20150511.125855
Add ugman_init and ug_init for wayland profile to failure in UG_INIT_EFL
Jira ticket : TC-2507
Change-Id: I0f787e50ac25fb18cb2bb38880fd12bf7ca5f8b8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Diffstat (limited to 'src/manager.c')
-rw-r--r-- | src/manager.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/manager.c b/src/manager.c index 093b465..65fdff2 100644 --- a/src/manager.c +++ b/src/manager.c @@ -865,6 +865,21 @@ int ugman_init(Display *disp, Window xid, void *win, enum ug_option opt) return 0; } +#else +int ugman_init(void *win, enum ug_option opt) +{ + ug_man.win = win; + ug_man.base_opt = opt; + ug_man.last_rotate_evt = UG_EVENT_NONE; + + if (!ug_man.is_initted) { + ug_man.engine = ug_engine_load(); + } + + ug_man.is_initted = 1; + + return 0; +} #endif int ugman_init_efl(Evas_Object *win, enum ug_option opt) @@ -873,6 +888,8 @@ int ugman_init_efl(Evas_Object *win, enum ug_option opt) Ecore_X_Window xwin = elm_win_xwindow_get(win); if (xwin) return ugman_init((Display *)ecore_x_display_get(), xwin, win, opt); +#else + return ugman_init(win, opt); #endif return -1; } |