rimmed pushed a commit to branch master.

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

commit cb3f449811673061df5b13cdde05f7a42dbad286
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Tue Feb 2 16:40:05 2016 +0000

    project_navigator: move group,open signal to signals.h
---
 src/bin/common/signals.h       | 8 ++++++++
 src/bin/ui/main_window.c       | 2 +-
 src/bin/ui/project_navigator.c | 4 +---
 3 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/bin/common/signals.h b/src/bin/common/signals.h
index c26a9e6..85aa3ee 100644
--- a/src/bin/common/signals.h
+++ b/src/bin/common/signals.h
@@ -45,6 +45,14 @@
 #define SIGNAL_GROUP_ADDED "SIGNAL_GROUP_ADDED"
 
 /**
+ * emited when group is opened.
+ * eventinfo - pointer to Group object
+ *
+ * @ingroup Window
+ */
+#define SIGNAL_GROUP_OPEN "SIGNAL_GROUP_OPEN"
+
+/**
  * emited when group is deleted.
  * eventinfo - pointer to group name (stringshare)
  *
diff --git a/src/bin/ui/main_window.c b/src/bin/ui/main_window.c
index 0c3392d..bcac0f9 100644
--- a/src/bin/ui/main_window.c
+++ b/src/bin/ui/main_window.c
@@ -153,7 +153,7 @@ ui_main_window_add(void)
    elm_panes_content_right_size_set(ap.panes.right, config->panes.tabs_size);
 
    project_navigator = project_navigator_add();
-   evas_object_smart_callback_add(project_navigator, "group,open", 
_project_navigator_group_open, NULL);
+   evas_object_smart_callback_add(project_navigator, SIGNAL_GROUP_OPEN, 
_project_navigator_group_open, NULL);
    elm_object_part_content_set(ap.panes.left, "left", project_navigator);
 
    tabs = tabs_add();
diff --git a/src/bin/ui/project_navigator.c b/src/bin/ui/project_navigator.c
index 97526a5..529fd6b 100644
--- a/src/bin/ui/project_navigator.c
+++ b/src/bin/ui/project_navigator.c
@@ -25,8 +25,6 @@
 #include "validator.h"
 #include "project_manager.h"
 
-#define SIG_GROUP_OPEN "group,open"
-
 typedef struct
 {
    Evas_Object *layout;
@@ -285,7 +283,7 @@ _on_clicked_double(void *data __UNUSED__,
    else
      {
         Group *group = (Group *)elm_object_item_data_get(glit);
-        evas_object_smart_callback_call(project_navigator.layout, 
SIG_GROUP_OPEN, group);
+        evas_object_smart_callback_call(project_navigator.layout, 
SIGNAL_GROUP_OPEN, group);
      }
 }
 

-- 


Reply via email to