rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=05774efd14cd76512c1d9a59fc0c0fbc51f64e8f

commit 05774efd14cd76512c1d9a59fc0c0fbc51f64e8f
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Mon Dec 21 15:40:39 2015 +0200

    demo_group: unset property if no parts are selected yet or were unselected
---
 src/bin/common/signals.h | 10 +++++++++-
 src/bin/ui/demo_group.c  |  4 ++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/src/bin/common/signals.h b/src/bin/common/signals.h
index 8e1f861..5132975 100644
--- a/src/bin/common/signals.h
+++ b/src/bin/common/signals.h
@@ -323,6 +323,14 @@ typedef struct {
 #define SIGNAL_DEMO_TEXT_PART_CLICKED "SIGNAL_DEMO_TEXT_PART_CLICKED"
 
 /**
+ * emited when swallow part in demo is clicked.
+ * eventinfo - NULL
+ *
+ * @ingroup Window
+ */
+#define SIGNAL_DEMO_SWALLOW_PART_CLICKED "SIGNAL_DEMO_SWALLOW_PART_CLICKED"
+
+/**
  * emited when style/styles in style editor is/are selected.
  * eventinfo - NULL
  *
@@ -340,7 +348,7 @@ typedef struct {
 
 /**
  * emited when part text is set with data in demo.
- * eventinfo - NULL
+ * eventinfo - part which contain important information like text, name, 
content.
  *
  * @ingroup Window
  */
diff --git a/src/bin/ui/demo_group.c b/src/bin/ui/demo_group.c
index 88a0912..9aebc25 100644
--- a/src/bin/ui/demo_group.c
+++ b/src/bin/ui/demo_group.c
@@ -148,6 +148,10 @@ _selected_cb(void *data __UNUSED__,
    if ((part->type == EDJE_PART_TYPE_TEXT) ||
        (part->type == EDJE_PART_TYPE_TEXTBLOCK))
      evas_object_smart_callback_call(ap.win, SIGNAL_DEMO_TEXT_PART_CLICKED, 
part);
+   else if (part->type == EDJE_PART_TYPE_SWALLOW)
+     evas_object_smart_callback_call(ap.win, SIGNAL_DEMO_SWALLOW_PART_CLICKED, 
NULL);
+   else /* empty everything */
+     evas_object_smart_callback_call(ap.win, SIGNAL_DIFFERENT_TAB_CLICKED, 
NULL);
 }
 
 Evas_Object *

-- 


Reply via email to