summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsunil85.kim <sunil85.kim@samsung.com>2013-03-13 08:05:55 (GMT)
committersunil85.kim <sunil85.kim@samsung.com>2013-03-13 08:09:47 (GMT)
commit5fbb88d34489a869b8fdd669c55621f4277f6cc1 (patch)
treec62e433ab05d47d9c2e4014f7eec2cc3b3f35fe6
parent495f0773afdbbfc819fad73f92a2a1046e25c680 (diff)
downloadug-wifi-direct-5fbb88d34489a869b8fdd669c55621f4277f6cc1.zip
ug-wifi-direct-5fbb88d34489a869b8fdd669c55621f4277f6cc1.tar.gz
ug-wifi-direct-5fbb88d34489a869b8fdd669c55621f4277f6cc1.tar.bz2
[N_SE-25814] Modify check button event
Change-Id: I0590811c65aee9f72617b962fa9083fcdea03625
-rwxr-xr-xdebian/changelog8
-rwxr-xr-xpackaging/libug-setting-wifidirect-efl.spec2
-rwxr-xr-xug-wifidirect/src/wfd_ug_genlist.c31
3 files changed, 40 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 40bd29f..a745b8f 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ug-setting-wifidirect-efl (1.0.9) precise; urgency=low
+
+ * [N_SE-25814] Modify check button event
+ * Git: rsa/apps/home/ug-wifi-direct
+ * Tag: libug-setting-wifidirect-efl_1.0.9
+
+ -- sunil85.kim <isurit@sunil85.kim> Wed, 13 Mar 2013 17:06:19 +0900
+
ug-setting-wifidirect-efl (1.0.8) precise; urgency=low
* Fix bug of invitation behavior
diff --git a/packaging/libug-setting-wifidirect-efl.spec b/packaging/libug-setting-wifidirect-efl.spec
index 298dd2b..75d6c25 100755
--- a/packaging/libug-setting-wifidirect-efl.spec
+++ b/packaging/libug-setting-wifidirect-efl.spec
@@ -3,7 +3,7 @@
Name: libug-setting-wifidirect-efl
Summary: Wi-Fi Direct setting UI gadget
-Version: 1.0.8
+Version: 1.0.9
Release: 1
Group: TO_BE_FILLED
License: Flora License
diff --git a/ug-wifidirect/src/wfd_ug_genlist.c b/ug-wifidirect/src/wfd_ug_genlist.c
index bb2345c..35d4103 100755
--- a/ug-wifidirect/src/wfd_ug_genlist.c
+++ b/ug-wifidirect/src/wfd_ug_genlist.c
@@ -96,6 +96,36 @@ static char *_gl_header_label_get(void *data, Evas_Object *obj, const char *part
}
/**
+ * This function let the ug call it when click header
+ * @return void
+ * @param[in] data the pointer to the main data structure
+ * @param[in] obj the pointer to the evas object
+ * @param[in] event_info the pointer to the event information
+ */
+static void _gl_header_sel(void *data, Evas_Object *obj, void *event_info)
+{
+ __WDUG_LOG_FUNC_ENTER__;
+ struct ug_data *ugd = (struct ug_data *) data;
+
+ Elm_Object_Item *item = (Elm_Object_Item *)event_info;
+ if (item != NULL)
+ elm_genlist_item_selected_set(item, EINA_FALSE);
+
+ if (ugd == NULL)
+ WDUG_LOGE("Incorrect parameter(NULL)\n");
+ else {
+ if(!ugd->wfd_onoff) {
+ WDUG_LOGD("Wi-Fi direct switch on\n");
+ wfd_client_switch_on(ugd);
+ } else {
+ WDUG_LOGD("Wi-Fi direct switch off\n");
+ wfd_client_switch_off(ugd);
+ }
+ }
+ __WDUG_LOG_FUNC_EXIT__;
+}
+
+/**
* This function let the ug get the icon of header
* @return the icon of header
* @param[in] data the pointer to the main data structure
@@ -122,6 +152,7 @@ static Evas_Object *_gl_header_icon_get(void *data, Evas_Object *obj, const char
onoff = elm_check_add(obj);
elm_object_style_set(onoff, "on&off");
elm_check_state_set(onoff, ugd->wfd_onoff);
+ evas_object_smart_callback_add(onoff, "changed", _gl_header_sel , ugd);
evas_object_show(onoff);
}