From 54482988d9a953fc43a634260cd3e76a2fbb1242 Mon Sep 17 00:00:00 2001 From: "jin0.kim" Date: Tue, 22 Mar 2016 09:51:38 +0830 Subject: Fixed to be launched setting app when longpressing the quicksetting button Change-Id: Iae8d942e1706da6a356d9de16bf606fd26e1da98 --- daemon/settings/modules/bluetooth.c | 2 +- daemon/settings/modules/gps.c | 24 ++---------------------- 2 files changed, 3 insertions(+), 23 deletions(-) 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 } -- cgit v1.2.3