From: jin0.kim Date: Tue, 22 Mar 2016 01:21:38 +0000 (+0830) Subject: Fixed to be launched setting app when longpressing the quicksetting button X-Git-Tag: submit/tizen/20160325.112320~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F63039%2F2;p=apps%2Fcore%2Fpreloaded%2Fquickpanel.git Fixed to be launched setting app when longpressing the quicksetting button Change-Id: Iae8d942e1706da6a356d9de16bf606fd26e1da98 --- diff --git a/daemon/settings/modules/bluetooth.c b/daemon/settings/modules/bluetooth.c index eeefa95..e32764b 100755 --- a/daemon/settings/modules/bluetooth.c +++ b/daemon/settings/modules/bluetooth.c @@ -35,7 +35,7 @@ #define BUTTON_ICON_NORMAL "quick_icon_bluetooth.png" #define BUTTON_ICON_HIGHLIGHT NULL #define BUTTON_ICON_DIM NULL -#define PACKAGE_SETTING_MENU "ug-bluetooth-efl-single" +#define PACKAGE_SETTING_MENU "ug-bluetooth-efl" static void _mouse_clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source); diff --git a/daemon/settings/modules/gps.c b/daemon/settings/modules/gps.c index 4fd33f6..16e7c01 100755 --- a/daemon/settings/modules/gps.c +++ b/daemon/settings/modules/gps.c @@ -30,6 +30,7 @@ #include "settings.h" #include "setting_utils.h" #include "setting_module_api.h" +#include "settings_icon_common.h" #define BUTTON_LABEL _("IDS_QP_BUTTON2_LOCATION_ABB") @@ -65,28 +66,7 @@ static const char *_icon_get(qp_setting_icon_image_type type) static void _long_press_cb(void *data) { #ifdef PACKAGE_SETTING_MENU - // Because operation is not DEFAULT, this function can not be called. Too many changes to add operation param. - // quickpanel_setting_icon_handler_longpress(PACKAGE_SETTING_MENU, NULL); - - app_control_h service; - int ret = 0; - - ret = app_control_create(&service); - if (ret != 0) { - ERR("Failed to create app control"); - return; - } - - app_control_set_app_id(service, PACKAGE_SETTING_MENU); - app_control_set_operation(service, OPERATION_SETTING_MENU); - - ret = app_control_send_launch_request(service, NULL, NULL); - if (ret != 0) { - ERR("Failed to launch[%d]", ret); - } - - app_control_destroy(service); - + quickpanel_setting_icon_handler_longpress(PACKAGE_SETTING_MENU, NULL); #endif }