summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjin0.kim <jin0.kim@samsung.com>2016-03-22 09:51:38 +0830
committerjin0.kim <jin0.kim@samsung.com>2016-03-23 10:14:51 +0830
commit54482988d9a953fc43a634260cd3e76a2fbb1242 (patch)
tree362c7119ff10d3bb87c7e634f2253cf97d99c160
parent86093b6cfc4d49a324396c70f0c24b766e09fcab (diff)
downloadquickpanel-54482988d9a953fc43a634260cd3e76a2fbb1242.tar.gz
quickpanel-54482988d9a953fc43a634260cd3e76a2fbb1242.tar.bz2
quickpanel-54482988d9a953fc43a634260cd3e76a2fbb1242.zip
Fixed to be launched setting app when longpressing the quicksetting button
Change-Id: Iae8d942e1706da6a356d9de16bf606fd26e1da98
-rwxr-xr-xdaemon/settings/modules/bluetooth.c2
-rwxr-xr-xdaemon/settings/modules/gps.c24
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
}