int setting_profile_get_call_playing_vib_by_vconf_value(int call_vib_value);
+void __setting_profile_ug_key_grab(SettingProfileUG *ad);
+void __setting_profile_ug_key_ungrab(SettingProfileUG *ad);
+
#endif
*
*/
#include <setting-profile-sound-main.h>
+#include <setting-profile.h>
#define VOLUME_STR _("IDS_ST_BODY_VOLUME")
#define RINGTONE_STR _("IDS_COM_BODY_RINGTONES")
SettingProfileUG *ad = (SettingProfileUG *) data;
+ __setting_profile_ug_key_grab(ad);
+
if(ad->sub_view[SETTING_PROF_VIEW_VOL])
return ad->sub_view[SETTING_PROF_VIEW_VOL];
SettingProfileUG *ad = (SettingProfileUG *) cb;
+ __setting_profile_ug_key_ungrab(ad);
+
if (ad->ly_main != NULL) {
//Fix the memory leak,
//Manage ad->sub_view[] separately, unset first, then delete in together
ret_if(priv == NULL);
SettingProfileUG *ad = (SettingProfileUG *) priv;
+ __setting_profile_ug_key_grab(ad);
+
if (ug) {
ug_destroy(ug);
ad->ug_loading = NULL;
if(pa_cur_ringtone)
FREE(pa_cur_ringtone);
+ __setting_profile_ug_key_ungrab(ad);
return;
}
return 0;
}
-static void __setting_profile_ug_key_grab(SettingProfileUG *ad)
+void __setting_profile_ug_key_grab(SettingProfileUG *ad)
{
SETTING_TRACE_BEGIN;
Ecore_X_Window xwin = 0;
ad->event_handler = ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, NULL, NULL);
SETTING_TRACE_END;
}
-static void __setting_profile_ug_key_ungrab(SettingProfileUG *ad)
+void __setting_profile_ug_key_ungrab(SettingProfileUG *ad)
{
SETTING_TRACE_BEGIN;
Ecore_X_Window xwin = 0;
setting_profile_ug_cb_resize, profileUG);
setting_profile_listen_vconf_change(profileUG);
- __setting_profile_ug_key_grab(profileUG);
return profileUG->ly_main;
}
SettingProfileUG *profileUG = priv;
- __setting_profile_ug_key_ungrab(profileUG);
-
setting_profile_unlisten_vconf_change(profileUG);
evas_object_event_callback_del(profileUG->win_main_layout, EVAS_CALLBACK_RESIZE, setting_profile_ug_cb_resize); /* fix flash issue for gallery */
profileUG->ug = ug;