[EGIT] [tools/enventor] master 01/01: revise redo/undo code

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=950d2943a1f24d8e044c4a2a11ee7da832c428e5

commit 950d2943a1f24d8e044c4a2a11ee7da832c428e5
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 16:41:24 2014 +0900

revise redo/undo code
---
 README |   2 +
 src/bin/auto_comp.c|  18 +-
 src/bin/edc_editor.c   |  62 +--
 src/bin/indent.c   |   5 +-
 src/bin/main.c |  12 --
 src/bin/menu.c |   2 -
 src/bin/redoundo.c | 463 -
 src/include/common.h   |   2 +-
 src/include/redoundo.h |  91 +-
 9 files changed, 294 insertions(+), 363 deletions(-)

diff --git a/README b/README
index aad958b..fb24f86 100644
--- a/README
+++ b/README
@@ -57,6 +57,8 @@ Ctrl+Shift+W = Insert Part Template Code: Swallow
  
 Ctrl+A = Select Text All
 Ctrl+Double Click = Select a word
+Ctrl+Z = Undo Text
+Ctrl+R = Redo Text
 Ctrl+C = Copy Selected Text
 Ctrl+V = Paste Copied Text
 Ctrl+X = Cut Selected Text
diff --git a/src/bin/auto_comp.c b/src/bin/auto_comp.c
index 6a728b0..9157c39 100644
--- a/src/bin/auto_comp.c
+++ b/src/bin/auto_comp.c
@@ -198,7 +198,6 @@ static void
 insert_completed_text(autocomp_data *ad)
 {
if (!ad-compset_list) return;
-   int redoundo_cursor = 0;
Elm_Object_Item *it = elm_list_selected_item_get(ad-list);
 
comp_set *compset =  elm_object_item_data_get(it);
@@ -206,7 +205,7 @@ insert_completed_text(autocomp_data *ad)
Evas_Object *entry = edit_entry_get(ad-ed);
 
int space = edit_cur_indent_depth_get(ad-ed);
-   redoundo_cursor = elm_entry_cursor_pos_get(entry);
+   int cursor_pos = elm_entry_cursor_pos_get(entry);
 
//Insert the first line.
elm_entry_entry_insert(entry,  txt[0]+ (ad-queue_pos + 1));
@@ -229,17 +228,12 @@ insert_completed_text(autocomp_data *ad)
 elm_entry_entry_insert(entry, txt[i]);
  }
 
-   int cursor_pos = elm_entry_cursor_pos_get(entry);
-
-   /* undo/redo feture connection */
-   elm_entry_select_region_set(entry,  redoundo_cursor, cursor_pos);
-   redoundo_node_add(elm_entry_selection_get(entry), redoundo_cursor,
- cursor_pos - redoundo_cursor, EINA_TRUE);
-   elm_entry_select_none(entry);
-   /*--*/
+   int cursor_pos2 = elm_entry_cursor_pos_get(entry);
+   redoundo_data *rd = evas_object_data_get(entry, redoundo);
+   redoundo_entry_region_push(rd, cursor_pos, cursor_pos2);
 
-   cursor_pos -= (compset-cursor_offset + (compset-line_back * space));
-   elm_entry_cursor_pos_set(entry, cursor_pos);
+   cursor_pos2 -= (compset-cursor_offset + (compset-line_back * space));
+   elm_entry_cursor_pos_set(entry, cursor_pos2);
edit_line_increase(ad-ed, (compset-line_cnt - 1));
 }
 
diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index 0818eae..9886d5e 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -25,6 +25,7 @@ struct editor_s
 
syntax_helper *sh;
parser_data *pd;
+   redoundo_data *rd;
 
int cur_line;
int line_max;
@@ -334,7 +335,7 @@ ctxpopup_candidate_selected_cb(void *data, Evas_Object 
*obj, void *event_info)
 {
edit_data *ed = data;
const char *text = event_info;
-   redoundo_candidate_add(text, elm_entry_cursor_pos_get(ed-en_edit));
+   redoundo_text_relative_push(ed-rd, text);
elm_entry_entry_insert(ed-en_edit, text);
elm_ctxpopup_dismiss(obj);
edit_changed_set(ed, EINA_TRUE);
@@ -445,6 +446,9 @@ edit_template_insert(edit_data *ed)
elm_entry_entry_insert(ed-en_edit, p);
elm_entry_entry_insert(ed-en_edit, t[i]);
 
+   int cursor_pos2 = elm_entry_cursor_pos_get(ed-en_edit);
+   redoundo_entry_region_push(ed-rd, cursor_pos, cursor_pos2);
+
elm_entry_cursor_pos_set(ed-en_edit, cursor_pos);
 
syntax_color_partial_update(ed, 0);
@@ -519,7 +523,6 @@ edit_template_part_insert(edit_data *ed, Edje_Part_Type 
type)
break;
  }
 
-   int redoundo_cursor = 0;
int i;
for (i = 0; i  (line_cnt - 1); i++)
  {
@@ -532,11 +535,8 @@ edit_template_part_insert(edit_data *ed, Edje_Part_Type 
type)
elm_entry_entry_insert(ed-en_edit, p);
elm_entry_entry_insert(ed-en_edit, t[i]);
 
-   redoundo_cursor = elm_entry_cursor_pos_get(ed-en_edit);
-   elm_entry_select_region_set(ed-en_edit, cursor_pos, redoundo_cursor);
-   redoundo_node_add(elm_entry_selection_get(ed-en_edit), cursor_pos,
- redoundo_cursor - cursor_pos, EINA_TRUE);
-   elm_entry_select_none(ed-en_edit);
+   int cursor_pos2 = elm_entry_cursor_pos_get(ed-en_edit);
+   redoundo_entry_region_push(ed-rd, cursor_pos, cursor_pos2);
 
elm_entry_cursor_pos_set(ed-en_edit, cursor_pos);
 
@@ -834,7 +834,8 @@ edit_line_delete(edit_data *ed)
//only one line remain. clear it.
if (ed-line_max == 1)
  {
-redoundo_node_add(elm_entry_entry_get(ed-en_edit), 0, 0, EINA_FALSE);
+redoundo_text_push(ed-rd, 

[EGIT] [tools/enventor] master 01/01: editor: update line status when text is changed.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=3cd276bc49b0fad71cad884c3608f77df1172328

commit 3cd276bc49b0fad71cad884c3608f77df1172328
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 16:53:06 2014 +0900

editor: update line status when text is changed.
---
 src/bin/edc_editor.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index 9886d5e..3d263ba 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -272,6 +272,8 @@ edit_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, 
void *event_info)
 if (info-change.del.content[0] == ' ') return;
  }
 
+   stats_line_num_update(ed-cur_line, ed-line_max);
+
if (!syntax_color) return;
syntax_color_partial_update(ed, SYNTAX_COLOR_DEFAULT_TIME);
 }

-- 




[EGIT] [tools/enventor] master 01/01: editor: display redo/undo message.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=e81058d2f8d7809a76c4912fffc0d14b54ad8f35

commit e81058d2f8d7809a76c4912fffc0d14b54ad8f35
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 16:59:37 2014 +0900

editor: display redo/undo message.
---
 src/bin/edc_editor.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index 3d263ba..994a4ac 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -880,6 +880,9 @@ edit_redoundo(edit_data *ed, Eina_Bool undo)
else lines = redoundo_redo(ed-rd, changed);
if (!changed) return;
 
+   if (undo) stats_info_msg_update(Undo text.);
+   else stats_info_msg_update(Redo text.);
+
if (lines  0) edit_line_increase(ed, lines);
else edit_line_decrease(ed, abs(lines));
 

-- 




[EGIT] [tools/enventor] master 01/01: editor: additional descriptive messages.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=34919344e418cb027532ac9bfb2547f789b535da

commit 34919344e418cb027532ac9bfb2547f789b535da
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 17:18:21 2014 +0900

editor: additional descriptive messages.

display a message when no text to be redoundo.
---
 src/bin/edc_editor.c | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index 994a4ac..aef4569 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -878,7 +878,12 @@ edit_redoundo(edit_data *ed, Eina_Bool undo)
 
if (undo) lines = redoundo_undo(ed-rd, changed);
else lines = redoundo_redo(ed-rd, changed);
-   if (!changed) return;
+   if (!changed)
+ {
+if (undo) stats_info_msg_update(No text to be undo.);
+else stats_info_msg_update(No text to be redo.);
+return;
+ }
 
if (undo) stats_info_msg_update(Undo text.);
else stats_info_msg_update(Redo text.);

-- 




[EGIT] [tools/enventor] master 01/01: goto: allow only digits input

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=faa6781753b67b2b6e1b2f90e0db2cd81f268e3a

commit faa6781753b67b2b6e1b2f90e0db2cd81f268e3a
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 17:40:51 2014 +0900

goto: allow only digits input
---
 src/bin/goto.c | 7 +++
 1 file changed, 7 insertions(+)

diff --git a/src/bin/goto.c b/src/bin/goto.c
index 49a4780..d92b6ff 100644
--- a/src/bin/goto.c
+++ b/src/bin/goto.c
@@ -83,6 +83,7 @@ btn_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
 void
 goto_open(edit_data *ed)
 {
+   static Elm_Entry_Filter_Accept_Set digits_filter_data;
goto_data *gd = g_gd;
 
if (gd)
@@ -135,6 +136,12 @@ goto_open(edit_data *ed)
Evas_Object *entry = elm_entry_add(layout);
elm_entry_single_line_set(entry, EINA_TRUE);
elm_entry_scrollable_set(entry, EINA_TRUE);
+
+
+   digits_filter_data.accepted = 0123456789;
+   digits_filter_data.rejected = NULL;
+   elm_entry_markup_filter_append(entry, elm_entry_filter_accept_set,
+  digits_filter_data);
evas_object_smart_callback_add(entry, activated, entry_activated_cb,
   gd);
evas_object_smart_callback_add(entry, changed,user, entry_changed_cb, gd);

-- 




[EGIT] [tools/enventor] master 01/01: goto: removed an empty line.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=518f193d1e903e23d730238aec9efc9330cf81e2

commit 518f193d1e903e23d730238aec9efc9330cf81e2
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 17:45:09 2014 +0900

goto: removed an empty line.
---
 src/bin/goto.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/bin/goto.c b/src/bin/goto.c
index d92b6ff..7231be8 100644
--- a/src/bin/goto.c
+++ b/src/bin/goto.c
@@ -137,7 +137,6 @@ goto_open(edit_data *ed)
elm_entry_single_line_set(entry, EINA_TRUE);
elm_entry_scrollable_set(entry, EINA_TRUE);
 
-
digits_filter_data.accepted = 0123456789;
digits_filter_data.rejected = NULL;
elm_entry_markup_filter_append(entry, elm_entry_filter_accept_set,

-- 




[EGIT] [tools/enventor] master 01/01: goto: removed a period in the message

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=dfabf9d1223a86cc4407187064538a72758ab812

commit dfabf9d1223a86cc4407187064538a72758ab812
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 17:58:27 2014 +0900

goto: removed a period in the message
---
 src/bin/goto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/goto.c b/src/bin/goto.c
index 7231be8..fc52f74 100644
--- a/src/bin/goto.c
+++ b/src/bin/goto.c
@@ -62,7 +62,7 @@ entry_changed_cb(void *data, Evas_Object *obj, void* 
event_info EINA_UNUSED)
if ((line  1) || (line  edit_max_line_get(gd-ed)))
  {
 elm_object_part_text_set(gd-layout, elm.text.msg,
- Invalid line number.);
+ Invalid line number);
 elm_object_disabled_set(gd-btn, EINA_TRUE);
  }
else

-- 




[EGIT] [tools/enventor] master 01/01: editor: update current line status properly.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=9da55623c7676f3d2c5531ce87cf6ded18dea378

commit 9da55623c7676f3d2c5531ce87cf6ded18dea378
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 18:15:22 2014 +0900

editor: update current line status properly.

put the line updation in the line inc/dec functions to be ensure.
---
 src/bin/edc_editor.c |  5 +++--
 src/bin/redoundo.c   | 20 ++--
 2 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index aef4569..a1306d8 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -272,8 +272,6 @@ edit_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, 
void *event_info)
 if (info-change.del.content[0] == ' ') return;
  }
 
-   stats_line_num_update(ed-cur_line, ed-line_max);
-
if (!syntax_color) return;
syntax_color_partial_update(ed, SYNTAX_COLOR_DEFAULT_TIME);
 }
@@ -1300,6 +1298,8 @@ edit_line_increase(edit_data *ed, int cnt)
 elm_entry_entry_append(ed-en_line, buf);
  }
elm_entry_calc_force(ed-en_line);
+
+   stats_line_num_update(ed-cur_line, ed-line_max);
 }
 
 void
@@ -1329,4 +1329,5 @@ edit_line_decrease(edit_data *ed, int cnt)
ed-line_max -= cnt;
 
if (ed-line_max  1) line_init(ed);
+   stats_line_num_update(ed-cur_line, ed-line_max);
 }
diff --git a/src/bin/redoundo.c b/src/bin/redoundo.c
index 9aef9eb..731d8a6 100644
--- a/src/bin/redoundo.c
+++ b/src/bin/redoundo.c
@@ -100,7 +100,7 @@ nochange:
 int
 redoundo_undo(redoundo_data *rd, Eina_Bool *changed)
 {
-   *changed = EINA_FALSE;
+   if (changed) *changed = EINA_FALSE;
 
if (!rd-last_diff) return 0;
 
@@ -152,9 +152,13 @@ redoundo_undo(redoundo_data *rd, Eina_Bool *changed)
rd-last_diff =  eina_list_data_get(rd-current_node);
 
if (rd-last_diff  rd-last_diff-relative)
- lines += redoundo_undo(rd, changed);
+ lines += redoundo_undo(rd, NULL);
 
-   *changed = EINA_TRUE;
+   if (changed)
+ {
+elm_entry_calc_force(rd-entry);
+*changed = EINA_TRUE;
+ }
 
return lines;
 }
@@ -162,7 +166,7 @@ redoundo_undo(redoundo_data *rd, Eina_Bool *changed)
 int
 redoundo_redo(redoundo_data *rd, Eina_Bool *changed)
 {
-   *changed = EINA_FALSE;
+   if (changed) *changed = EINA_FALSE;
 
if (!rd-queue) return 0;
 
@@ -225,9 +229,13 @@ redoundo_redo(redoundo_data *rd, Eina_Bool *changed)
rd-current_node = next;
 
if (diff-relative)
- lines += redoundo_redo(rd, changed);
+ lines += redoundo_redo(rd, NULL);
 
-   *changed = EINA_TRUE;
+   if (changed)
+ {
+elm_entry_calc_force(rd-entry);
+*changed = EINA_TRUE;
+ }
 
return EINA_TRUE;
 }

-- 




[EGIT] [tools/enventor] master 01/01: editor: set line number status correctly when edc is empty.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=bfcc188551d9626f4712f257b4723772c997735d

commit bfcc188551d9626f4712f257b4723772c997735d
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 18:26:14 2014 +0900

editor: set line number status correctly when edc is empty.
---
 src/bin/edc_editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index a1306d8..ff9b610 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -1151,7 +1151,6 @@ edit_edc_read(edit_data *ed, const char *file_path)
   parser_first_group_name_get(ed-pd, ed-en_edit);
 
stats_edc_group_update(group_name);
-   stats_line_num_update(0, ed-line_max);
base_title_set(config_edc_path_get());
 
ecore_animator_add(syntax_color_timer_cb, ed);
@@ -1163,6 +1162,7 @@ err:
if (utf8_edit) eina_file_map_free(file, utf8_edit);
if (file) eina_file_close(file);
autocomp_target_set(ed);
+   stats_line_num_update(1, ed-line_max);
 }
 
 void

-- 




[EGIT] [tools/enventor] master 01/01: redoundo: remove odd line status updation call.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=1a75d9f18ef18000e263929553b7776196a0adae

commit 1a75d9f18ef18000e263929553b7776196a0adae
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 18:33:23 2014 +0900

redoundo: remove odd line status updation call.
---
 src/bin/redoundo.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/bin/redoundo.c b/src/bin/redoundo.c
index 731d8a6..6f21adb 100644
--- a/src/bin/redoundo.c
+++ b/src/bin/redoundo.c
@@ -112,9 +112,6 @@ redoundo_undo(redoundo_data *rd, Eina_Bool *changed)
if (rd-last_diff-action)
  {
 //Last change was adding new symbol(s), that mean here need delete it
-//FIXME: cur_line is 0?
-stats_line_num_update(0, elm_entry_cursor_pos_get(rd-entry));
-
 //Undo one character
 if (rd-last_diff-length == 1)
   {

-- 




[EGIT] [tools/enventor] master 01/01: redoundo: fixed typo.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=ea7ba535e3586446128b8ea4a353f7aee16fdf9a

commit ea7ba535e3586446128b8ea4a353f7aee16fdf9a
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 18:39:05 2014 +0900

redoundo: fixed typo.
---
 src/bin/redoundo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/redoundo.c b/src/bin/redoundo.c
index 6f21adb..fa0bfa0 100644
--- a/src/bin/redoundo.c
+++ b/src/bin/redoundo.c
@@ -234,7 +234,7 @@ redoundo_redo(redoundo_data *rd, Eina_Bool *changed)
 *changed = EINA_TRUE;
  }
 
-   return EINA_TRUE;
+   return lines;
 }
 
 void

-- 




[EGIT] [tools/enventor] master 01/01: updated AUTHORS

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=8fc8d6c192eaf7bd05aef34daa56026fda66156c

commit 8fc8d6c192eaf7bd05aef34daa56026fda66156c
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 18:42:11 2014 +0900

updated AUTHORS
---
 AUTHORS | 1 +
 1 file changed, 1 insertion(+)

diff --git a/AUTHORS b/AUTHORS
index 794a297..449164d 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -7,3 +7,4 @@ Jihoon Kim jihoon48@samsung.com
 The Rasterman (Carsten Haitzler) ras...@rasterman.com
 Kateryna Fesyna k.fes...@samsung.com
 JaeHyun Jo jae_hyun_...@naver.com
+Mykyta Biliavskyi m.biliavs...@samsung.com

-- 




[EGIT] [tools/enventor] enventor-0.3 03/05: editor: set line number status correctly when edc is empty.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch enventor-0.3.

http://git.enlightenment.org/tools/enventor.git/commit/?id=cdd1f989fe15e471c236c01d12744599886aded7

commit cdd1f989fe15e471c236c01d12744599886aded7
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 18:26:14 2014 +0900

editor: set line number status correctly when edc is empty.
---
 src/bin/edc_editor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index 7a45d00..d10a3ee 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -1077,7 +1077,6 @@ edit_edc_read(edit_data *ed, const char *file_path)
   parser_first_group_name_get(ed-pd, ed-en_edit);
 
stats_edc_group_update(group_name);
-   stats_line_num_update(0, ed-line_max);
base_title_set(config_edc_path_get());
 
ecore_animator_add(syntax_color_timer_cb, ed);
@@ -1089,6 +1088,7 @@ err:
if (utf8_edit) eina_file_map_free(file, utf8_edit);
if (file) eina_file_close(file);
autocomp_target_set(ed);
+   stats_line_num_update(1, ed-line_max);
 }
 
 void

-- 




[EGIT] [tools/enventor] enventor-0.3 01/05: edc_editor: focus lose on left-arrow key is pressed

2014-08-02 Thread Kateryna Fesyna
hermet pushed a commit to branch enventor-0.3.

http://git.enlightenment.org/tools/enventor.git/commit/?id=46b5582e4f2507a62202b5f17fc3e15528ae646c

commit 46b5582e4f2507a62202b5f17fc3e15528ae646c
Author: Kateryna Fesyna k.fes...@samsung.com
Date:   Tue Jul 29 16:33:22 2014 +0900

edc_editor: focus lose on left-arrow key is pressed

Summary:
Call elm_object_focus_allow_set() function for en_line entry to
forbid focusing it, so en_editor would not lose its focus.

Reviewers: Hermet

Differential Revision: https://phab.enlightenment.org/D1246
---
 src/bin/edc_editor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index c2673d2..4ceaae2 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -953,6 +953,7 @@ edit_init(Evas_Object *parent)
evas_object_color_set(en_line, 101, 101, 101, 255);
elm_entry_editable_set(en_line, EINA_FALSE);
elm_entry_line_wrap_set(en_line, ELM_WRAP_NONE);
+   elm_object_focus_allow_set(en_line, EINA_FALSE);
evas_object_size_hint_weight_set(en_line, 0, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(en_line, 0, EVAS_HINT_FILL);
elm_object_part_content_set(layout, elm.swallow.linenumber, en_line);

-- 




[EGIT] [tools/enventor] enventor-0.3 04/05: editor: update current line status properly.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch enventor-0.3.

http://git.enlightenment.org/tools/enventor.git/commit/?id=7b711c9fc8b2a0e93827dfa67aaaee0ea4dec331

commit 7b711c9fc8b2a0e93827dfa67aaaee0ea4dec331
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 18:15:22 2014 +0900

editor: update current line status properly.

put the line updation in the line inc/dec functions to be ensure.

Conflicts:

src/bin/redoundo.c
---
 src/bin/edc_editor.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index d10a3ee..a5404dc 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -266,8 +266,6 @@ edit_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, 
void *event_info)
 if (info-change.del.content[0] == ' ') return;
  }
 
-   stats_line_num_update(ed-cur_line, ed-line_max);
-
if (!syntax_color) return;
syntax_color_partial_update(ed, SYNTAX_COLOR_DEFAULT_TIME);
 }
@@ -1223,6 +1221,8 @@ edit_line_increase(edit_data *ed, int cnt)
 elm_entry_entry_append(ed-en_line, buf);
  }
elm_entry_calc_force(ed-en_line);
+
+   stats_line_num_update(ed-cur_line, ed-line_max);
 }
 
 void
@@ -1252,4 +1252,5 @@ edit_line_decrease(edit_data *ed, int cnt)
ed-line_max -= cnt;
 
if (ed-line_max  1) line_init(ed);
+   stats_line_num_update(ed-cur_line, ed-line_max);
 }

-- 




[EGIT] [tools/enventor] enventor-0.3 05/05: bump up version.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch enventor-0.3.

http://git.enlightenment.org/tools/enventor.git/commit/?id=10848a3c99a24c2875786d1c3c77f50896d4cc1f

commit 10848a3c99a24c2875786d1c3c77f50896d4cc1f
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 18:50:25 2014 +0900

bump up version.
---
 README   | 2 +-
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README b/README
index a52342a..ac6ea7a 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-[Enventor v0.3.0]
+[Enventor v0.3.1]
  
 This is an EDC editor with some convenient functions. It's brand new and was
 only started near the begining of June 2013, so expecting it to do everything a
diff --git a/configure.ac b/configure.ac
index 709b536..76946dc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2,7 +2,7 @@
 ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
 m4_define([v_maj], [0])
 m4_define([v_min], [3])
-m4_define([v_mic], [0])
+m4_define([v_mic], [1])
 #m4_define([v_rev], m4_esyscmd([(git rev-list --count HEAD 2/dev/null || echo 
0) | tr -d '\n']))dnl
 ##--   When released, remove the dnl on the below line
 dnl m4_undefine([v_rev])

-- 




[EGIT] [tools/enventor] enventor-0.3 02/05: editor: update line status when text is changed.

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch enventor-0.3.

http://git.enlightenment.org/tools/enventor.git/commit/?id=cfa983db5839365177ec2f18a3f248704e71975f

commit cfa983db5839365177ec2f18a3f248704e71975f
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sat Aug 2 16:53:06 2014 +0900

editor: update line status when text is changed.
---
 src/bin/edc_editor.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index 4ceaae2..7a45d00 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -266,6 +266,8 @@ edit_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, 
void *event_info)
 if (info-change.del.content[0] == ' ') return;
  }
 
+   stats_line_num_update(ed-cur_line, ed-line_max);
+
if (!syntax_color) return;
syntax_color_partial_update(ed, SYNTAX_COLOR_DEFAULT_TIME);
 }

-- 




[EGIT] [tools/enventor] annotated tag v0.3.1 created

2014-08-02 Thread Enlightenment Git
hermet pushed a change to annotated tag v0.3.1
in repository tools/enventor.

at  a5c83c79d2 (tag)
   tagging  10848a3c99a24c2875786d1c3c77f50896d4cc1f (commit)
  replaces  v0.3.0
 tagged by  ChunEon Park
on  Sat Aug 2 18:52:58 2014 +0900

- Log -
enventor - v0.3.1

ChunEon Park (7):
  updated AUTHORS
  edc_editor - fix the disappear scrollable functionality.
  edc_editor - fix the vertical scroller disappear on ctrl+v
  editor: update line status when text is changed.
  editor: set line number status correctly when edc is empty.
  editor: update current line status properly.
  bump up version.

Kateryna Fesyna (1):
  edc_editor: focus lose on left-arrow key is pressed

---

No new revisions were added by this update.

-- 




Re: [E-devel] Can't launch Econnman from gadget

2014-08-02 Thread Massimo Maiurana
Massimo Maiurana, il 02/07/2014 23:53, ha scritto:
 I don't know when this started, it could be much time, but I'm not able
 to run Econnman clicking on the configure button of the gadget
 anymore. It says the application EConnMan doesn't exist, which is weird as:
 - it did work
 - I've also copied its desktop file in ~/.local/share/applications
 - I can run econnman-bin from command line
 - the application is shown in menus and in evry
 
 Any hint about where to start to solve this issue is much appreciated :)
 

Found the issue:
https://phab.enlightenment.org/T1472

-- 
Massimo Maiurana
Ragusa (RG)

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[EGIT] [core/enlightenment] master 01/01: conf_display: NULL check before strdup

2014-08-02 Thread Wonguk Jeong
huchi pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=e2daed517729e70c5b4e6d57aae5df69b487e8d5

commit e2daed517729e70c5b4e6d57aae5df69b487e8d5
Author: Wonguk Jeong wonguk.je...@samsung.com
Date:   Sat Aug 2 15:00:54 2014 +0200

conf_display: NULL check before strdup
---
 src/modules/conf_display/e_int_config_desklock_fsel.c | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/modules/conf_display/e_int_config_desklock_fsel.c 
b/src/modules/conf_display/e_int_config_desklock_fsel.c
index 2df7ebc..ab1 100644
--- a/src/modules/conf_display/e_int_config_desklock_fsel.c
+++ b/src/modules/conf_display/e_int_config_desklock_fsel.c
@@ -73,7 +73,7 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, 
E_Config_Dialog_Data
 {
Evas_Object *o, *ow, *ot, *rt;
E_Radio_Group *rg;
-   Eina_Stringshare *file;
+   const char *file = NULL;
char path[PATH_MAX];
size_t len;
 
@@ -82,13 +82,15 @@ _basic_create(E_Config_Dialog *cfd __UNUSED__, Evas *evas, 
E_Config_Dialog_Data
 
len = e_user_dir_concat_static(path, backgrounds);
e_widget_preview_file_get(cfd-data, file, NULL);
-   cfdata-bg = strdup(file);
if (file)
  {
+cfdata-bg = strdup(file);
 cfdata-fmdir = strncmp(file, path, len);
 if (cfdata-fmdir)
   e_prefix_data_concat_static(path, data/backgrounds);
  }
+   else
+ cfdata-bg = NULL;
 
rg = e_widget_radio_group_new((cfdata-fmdir));
ot = e_widget_table_add(evas, 0);

-- 




[EGIT] [core/efl] master 01/01: fix warning about unused var

2014-08-02 Thread Carsten Haitzler
raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=38bed2cd8a4212ab9dce95a40c1ae722144e98fd

commit 38bed2cd8a4212ab9dce95a40c1ae722144e98fd
Author: Carsten Haitzler (Rasterman) ras...@rasterman.com
Date:   Sat Aug 2 22:54:23 2014 +0900

fix warning about unused var
---
 src/lib/ecore_x/ecore_x_vsync_tool.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/lib/ecore_x/ecore_x_vsync_tool.c 
b/src/lib/ecore_x/ecore_x_vsync_tool.c
index bddca01..c6fa82e 100644
--- a/src/lib/ecore_x/ecore_x_vsync_tool.c
+++ b/src/lib/ecore_x/ecore_x_vsync_tool.c
@@ -104,9 +104,6 @@ _tick_notify(void *data EINA_UNUSED, Ecore_Thread *thread 
EINA_UNUSED, void *msg
 
if (t)
  {
-static double pt = 0.0;
-
-pt = *t;
 _svr_broadcast_time(*t);
 free(t);
  }

-- 




[EGIT] [website/www] master 01/01: www: update enventor download link

2014-08-02 Thread ChunEon Park
hermet pushed a commit to branch master.

http://git.enlightenment.org/website/www.git/commit/?id=41162a6d3d4d8c72435fa5fdf9ec0ade154872e2

commit 41162a6d3d4d8c72435fa5fdf9ec0ade154872e2
Author: ChunEon Park her...@hermet.pe.kr
Date:   Sun Aug 3 00:58:58 2014 +0900

www: update enventor download link
---
 public_html/p/download/en-body | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/public_html/p/download/en-body b/public_html/p/download/en-body
index 00cf6fa..2b6c6d9 100644
--- a/public_html/p/download/en-body
+++ b/public_html/p/download/en-body
@@ -111,10 +111,10 @@
?php frame2();?
 
?php frame1(width=100%);?
-   div class=mainpbEnventor/b em0.3.0/em/pp
+   div class=mainpbEnventor/b em0.3.1/em/pp
  The dynamic EDC editor to write your layout fast and easy. /pp 
align=right?php blinkdl(i/dl.png,
  DOWNLOAD,
- 
http://download.enlightenment.org/rel/apps/enventor/enventor-0.3.0.tar.gz;
+ 
http://download.enlightenment.org/rel/apps/enventor/enventor-0.3.1.tar.gz;
);?/p/div
?php frame2();?
 

-- 




[E-devel] Enventor 0.3.1 Release

2014-08-02 Thread ChunEon Park
Enventor 0.3.0 had some critical scroller bugs,
this 0.3.1 release fixes them. 
 
The tarballs can be found at:
http://download.enlightenment.org/rel/apps/enventor/enventor-0.3.1.tar.gz
http://download.enlightenment.org/rel/apps/enventor/enventor-0.3.1.tar.bz2

The fixes:
edc_editor: fix the disappear scrollable functionality.
  edc_editor: fix the vertical scroller disappear on ctrl+v.
  editor: update line status properly when text is changed.
  editor: set line number and position status correctly when edc is empty.
  
Have fun with Enventor! 



-Regards, Hermet- 
--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[EGIT] [core/efl] master 01/01: Eina: Change from to for header inclusion

2014-08-02 Thread bluezery
stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=8f30d8a94956f7a18e4c79ea834137157adaa927

commit 8f30d8a94956f7a18e4c79ea834137157adaa927
Author: bluezery the81@samsung.com
Date:   Sat Aug 2 21:09:57 2014 +0200

Eina: Change from  to  for header inclusion

Summary:
All eina_xxx.h are expored headers.
Using system path to search eina headers seems to be better.

Reviewers: raster, stefan_schmidt, stefan, cedric

Subscribers: stefan_schmidt, cedric

Differential Revision: https://phab.enlightenment.org/D1079
---
 src/lib/eina/Eina.h | 100 ++--
 1 file changed, 50 insertions(+), 50 deletions(-)

diff --git a/src/lib/eina/Eina.h b/src/lib/eina/Eina.h
index ccde5c1..bb2681e 100644
--- a/src/lib/eina/Eina.h
+++ b/src/lib/eina/Eina.h
@@ -214,56 +214,56 @@
 extern C {
 #endif
 
-#include eina_config.h
-#include eina_types.h
-#include eina_alloca.h
-#include eina_main.h
-#include eina_fp.h
-#include eina_rectangle.h
-#include eina_clist.h
-#include eina_inlist.h
-#include eina_file.h
-#include eina_list.h
-#include eina_hash.h
-#include eina_trash.h
-#include eina_lalloc.h
-#include eina_module.h
-#include eina_mempool.h
-#include eina_error.h
-#include eina_log.h
-#include eina_inarray.h
-#include eina_array.h
-#include eina_binshare.h
-#include eina_stringshare.h
-#include eina_ustringshare.h
-#include eina_magic.h
-#include eina_counter.h
-#include eina_rbtree.h
-#include eina_accessor.h
-#include eina_iterator.h
-#include eina_benchmark.h
-#include eina_convert.h
-#include eina_cpu.h
-#include eina_sched.h
-#include eina_tiler.h
-#include eina_thread.h
-#include eina_hamster.h
-#include eina_matrixsparse.h
-#include eina_str.h
-#include eina_strbuf.h
-#include eina_binbuf.h
-#include eina_ustrbuf.h
-#include eina_unicode.h
-#include eina_quadtree.h
-#include eina_simple_xml_parser.h
-#include eina_lock.h
-#include eina_prefix.h
-#include eina_refcount.h
-#include eina_mmap.h
-#include eina_xattr.h
-#include eina_value.h
-#include eina_cow.h
-#include eina_thread_queue.h
+#include eina_config.h
+#include eina_types.h
+#include eina_alloca.h
+#include eina_main.h
+#include eina_fp.h
+#include eina_rectangle.h
+#include eina_clist.h
+#include eina_inlist.h
+#include eina_file.h
+#include eina_list.h
+#include eina_hash.h
+#include eina_trash.h
+#include eina_lalloc.h
+#include eina_module.h
+#include eina_mempool.h
+#include eina_error.h
+#include eina_log.h
+#include eina_inarray.h
+#include eina_array.h
+#include eina_binshare.h
+#include eina_stringshare.h
+#include eina_ustringshare.h
+#include eina_magic.h
+#include eina_counter.h
+#include eina_rbtree.h
+#include eina_accessor.h
+#include eina_iterator.h
+#include eina_benchmark.h
+#include eina_convert.h
+#include eina_cpu.h
+#include eina_sched.h
+#include eina_tiler.h
+#include eina_thread.h
+#include eina_hamster.h
+#include eina_matrixsparse.h
+#include eina_str.h
+#include eina_strbuf.h
+#include eina_binbuf.h
+#include eina_ustrbuf.h
+#include eina_unicode.h
+#include eina_quadtree.h
+#include eina_simple_xml_parser.h
+#include eina_lock.h
+#include eina_prefix.h
+#include eina_refcount.h
+#include eina_mmap.h
+#include eina_xattr.h
+#include eina_value.h
+#include eina_cow.h
+#include eina_thread_queue.h
 
 #ifdef __cplusplus
 }

-- 




Re: [E-devel] [e-users] Emotion Media Center 1.0 first beta is out

2014-08-02 Thread The Rasterman
On Fri, 1 Aug 2014 11:55:17 +0200 Davide Andreoli d...@gurumeditation.it said:

i have to say... this is rather awesome.

 Hi all,
 
 the first beta release of EpyMC is waiting for you !!
 
 This is the result of many years of development, I hope you will enjoy the
 result as I enjoined the development.
 
 The code is hosted at Github:
 https://github.com/DaveMDS/epymc
 
 Direct download link for this release:
 https://github.com/DaveMDS/epymc/archive/v1.0.0-beta1.tar.gz
 
 On the Github wiki you will find all the needed instructions for installing
 and using the media center, along with screenshots and screencasts.
 
 I'm planning to roll out the final 1.0 release in 7/10 days, please let me
 know of any issue you encounter with this first release.
 
 Happy testing
 davemds
 --
 Want fast and easy access to all the code in your enterprise? Index and
 search up to 200,000 lines of code with a free copy of Black Duck
 Code Sight - the same software that powers the world's largest code
 search on Ohloh, the Black Duck Open Hub! Try it now.
 http://p.sf.net/sfu/bds
 ___
 enlightenment-users mailing list
 enlightenment-us...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-users
 


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[EGIT] [apps/terminology] master 01/01: fix autogetn.sh for terminology for gettext

2014-08-02 Thread Carsten Haitzler
raster pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=e3172d6796e019a2f68c0d7050a7d509c36fe63f

commit e3172d6796e019a2f68c0d7050a7d509c36fe63f
Author: Carsten Haitzler (Rasterman) ras...@rasterman.com
Date:   Sun Aug 3 09:26:51 2014 +0900

fix autogetn.sh for terminology for gettext

so i've been having trouble building for the past while unless i git
clean our build files etc. - it turned out to be the autogen.sh, so
i'm using one that works from elm. :)
---
 autogen.sh | 36 
 1 file changed, 32 insertions(+), 4 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 6d9dc10..b814903 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,10 +3,38 @@
 rm -rf autom4te.cache
 rm -f aclocal.m4 ltmain.sh
 
-autoreconf --symlink --install || exit 1
+touch README
+touch ABOUT-NLS
 
-if [ -z $NOCONFIGURE ]; then
-  exec ./configure -C $@
+echo Running autopoint... ; autopoint -f || :
+echo Running aclocal... ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1
+echo Running autoheader... ; autoheader || exit 1
+echo Running autoconf... ; autoconf || exit 1
+echo Running libtoolize... ; (libtoolize --copy --automake || glibtoolize 
--automake) || exit 1
+echo Running automake... ; automake --add-missing --copy --gnu || exit 1
+
+W=0
+
+rm -f config.cache-env.tmp
+echo OLD_PARM=\$@\  config.cache-env.tmp
+echo OLD_CFLAGS=\$CFLAGS\  config.cache-env.tmp
+echo OLD_PATH=\$PATH\  config.cache-env.tmp
+echo OLD_PKG_CONFIG_PATH=\$PKG_CONFIG_PATH\  config.cache-env.tmp
+echo OLD_LDFLAGS=\$LDFLAGS\  config.cache-env.tmp
+
+cmp config.cache-env.tmp config.cache-env  /dev/null
+if [ $? -ne 0 ]; then
+   W=1;
 fi
 
-exit 0
+if [ $W -ne 0 ]; then
+   echo Cleaning configure cache...;
+   rm -f config.cache config.cache-env
+   mv config.cache-env.tmp config.cache-env
+else
+   rm -f config.cache-env.tmp
+fi
+
+if [ -z $NOCONFIGURE ]; then
+   ./configure -C $@
+fi

-- 




[EGIT] [apps/rage] master 01/01: rage - improve icons for full/unfullscreen

2014-08-02 Thread Rasterman
raster pushed a commit to branch master.

http://git.enlightenment.org/apps/rage.git/commit/?id=7527276a8efa00dab7713c9f94f535de566f4cbd

commit 7527276a8efa00dab7713c9f94f535de566f4cbd
Author: Carsten Haitzler (Rasterman) ras...@rasterman.com
Date:   Sun Aug 3 10:01:32 2014 +0900

rage - improve icons for full/unfullscreen
---
 data/themes/images/icon_fullscreen.png| Bin 3880 - 4821 bytes
 data/themes/images/icon_fullscreen2.png   | Bin 4093 - 2780 bytes
 data/themes/images/icon_unfullscreen.png  | Bin 4541 - 5468 bytes
 data/themes/images/icon_unfullscreen2.png | Bin 4611 - 2839 bytes
 4 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/data/themes/images/icon_fullscreen.png 
b/data/themes/images/icon_fullscreen.png
index cbdf390..7d9d347 100644
Binary files a/data/themes/images/icon_fullscreen.png and 
b/data/themes/images/icon_fullscreen.png differ
diff --git a/data/themes/images/icon_fullscreen2.png 
b/data/themes/images/icon_fullscreen2.png
index 574ede1..10b8672 100644
Binary files a/data/themes/images/icon_fullscreen2.png and 
b/data/themes/images/icon_fullscreen2.png differ
diff --git a/data/themes/images/icon_unfullscreen.png 
b/data/themes/images/icon_unfullscreen.png
index 03ea780..98ab953 100644
Binary files a/data/themes/images/icon_unfullscreen.png and 
b/data/themes/images/icon_unfullscreen.png differ
diff --git a/data/themes/images/icon_unfullscreen2.png 
b/data/themes/images/icon_unfullscreen2.png
index c3009e4..feb8c9a 100644
Binary files a/data/themes/images/icon_unfullscreen2.png and 
b/data/themes/images/icon_unfullscreen2.png differ

--