From: hhh.kwon Date: Tue, 20 Nov 2012 03:43:54 +0000 (+0900) Subject: Fix bug that setting-UG can't be opened. X-Git-Tag: 2.1b_release~2^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fd414bf80c786c1191161020af8b5f3db403a07;p=apps%2Fhome%2Fvolume-app.git Fix bug that setting-UG can't be opened. --- diff --git a/src/_button.c b/src/_button.c index bc37b56..d0ed4a3 100755 --- a/src/_button.c +++ b/src/_button.c @@ -97,9 +97,6 @@ ui_gadget_h create_button_ug(void *data) utilx_set_window_opaque_state(ecore_x_display_get(), elm_win_xwindow_get(ad->win), UTILX_OPAQUE_STATE_ON); ug = ug_create(NULL, "setting-profile-efl", UG_MODE_FULLVIEW, NULL, &cbs); - ecore_x_e_illume_quickpanel_state_send(ecore_x_e_illume_zone_get(elm_win_xwindow_get(ad->win)), - ECORE_X_ILLUME_QUICKPANEL_STATE_OFF); - return ug; } @@ -114,11 +111,18 @@ int _open_ug(void *data) UG_INIT_EFL(ad->win, UG_OPT_INDICATOR_PORTRAIT_ONLY); elm_win_indicator_mode_set(ad->win, ELM_WIN_INDICATOR_SHOW); ug = create_button_ug(ad); - _ungrab_key(ad); - - retvm_if(ug == NULL, -1, "Failed to Create ug!\n"); + if(ug!=NULL){ + ecore_x_e_illume_quickpanel_state_send(ecore_x_e_illume_zone_get(elm_win_xwindow_get(ad->win)), + ECORE_X_ILLUME_QUICKPANEL_STATE_OFF); + _ungrab_key(ad); + } + else{ + ecore_x_netwm_window_type_set(elm_win_xwindow_get(ad->win), ECORE_X_WINDOW_TYPE_NOTIFICATION); + utilx_set_window_opaque_state(ecore_x_display_get(), elm_win_xwindow_get(ad->win), UTILX_OPAQUE_STATE_OFF); + elm_win_indicator_mode_set(ad->win, ELM_WIN_INDICATOR_HIDE); + return -1; + } ad->ug = ug; - return 0; }