Commit Graph

1131 Commits

Author SHA1 Message Date
Hermet Park 5cc7bc4770 fix makedist failure.
include missing resources.
2016-03-08 16:34:21 +09:00
Hermet Park b663d049db Revert "edc_editor: Support auto save to update preview."
This reverts commit 509b9bd628.
2016-03-08 10:17:25 +09:00
Hermet Park aa6607c616 Revert "editor: don't auto save always."
This reverts commit 3a2c08e6c5.

Revert this temporarily for release enventor 0.8.0
2016-03-08 10:16:55 +09:00
Hermet Park e67a1d1607 Revert "Fix to apply Eo4."
This reverts commit b656f774d9.

Revert this for enventor 0.8.0 release.
2016-03-08 10:16:04 +09:00
Hermet Park 8f53a8d9cf indent: free code line resource properly. 2016-03-07 23:42:10 +09:00
Hermet Park 55987e5774 edc_parser: fix one more memory leak. 2016-03-07 23:26:00 +09:00
Hermet Park f760fd4144 edc_parser: go away memory leaks! 2016-03-07 23:22:22 +09:00
Hermet Park 79f10753fe edc_editor: one more memory leak :( 2016-03-07 22:55:34 +09:00
Hermet Park ce3b32741d edc_editor: free string memory after use them. 2016-03-07 22:53:51 +09:00
Hermet Park 135af1a13f console: free memory after used it. 2016-03-07 22:41:31 +09:00
Hermet Park 8500ebbb80 indent: add a comment to be fixed. 2016-03-07 22:35:53 +09:00
Hermet Park 442c22e28a edc_parser: remove memory leak. 2016-03-07 22:30:16 +09:00
Hermet Park 9b48678c70 dummy_obj: don't allocate memory if the object is invalid. 2016-03-07 22:28:57 +09:00
Hermet Park f26a4db691 edc_editor: free string resources after it used. 2016-03-07 22:22:31 +09:00
Hermet Park c03187f3cd panes: free all transits when enventor is terminated. 2016-03-07 22:14:45 +09:00
Hermet Park ea3d989d70 edc_parser: remove unnecessary code. 2016-03-07 21:50:30 +09:00
Hermet Park 665bcb9b55 edc_parser: fix typo. 2016-03-07 20:47:24 +09:00
Hermet Park 6280b1e680 Revert "edc_parser: check null for code safety"
This reverts commit ed5c01209d.
2016-03-07 20:45:11 +09:00
taehyub ed5c01209d edc_parser: check null for code safety
Summary:
check null for code safety

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3776
2016-03-07 20:44:23 +09:00
Jaehyun Cho 3530641830 main: Use destination length in snprintf.
Use destination length instead of source length in snprintf.
2016-03-07 20:42:35 +09:00
taehyub 651d8551a3 main: change sprintf to snprintf
Summary: change sprintf to snprintf for code safety

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3773
2016-03-07 20:30:49 +09:00
taehyub 58f08915e9 edc_editor: change sprintf to snprintf
Summary: change sprintf to snprintf for code safety

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3774
2016-03-07 20:30:49 +09:00
taehyub 1a0f3c7e1d config_data: change sprintf function to snprintf function
Summary:
change sprintf to snprintf for code safety

@fix

Reviewers: Hermet, NikaWhite, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3772
2016-03-07 20:22:09 +09:00
taehyub 6ad27f9fbe newfile: change sprintf function to snprintf function
Summary:
change sprintf to snprintf for code safety

@fix

Reviewers: Hermet, NikaWhite, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3771
2016-03-07 20:18:38 +09:00
Jaehyun Cho d4fec9c7d2 dummy_obj: Print error when setting swallow image is failed.
If setting swallow image from edje file is failed, then print error.
2016-03-07 20:14:02 +09:00
Jaehyun Cho cab91580fe config_data: Terminate if config init is failed.
If config init is failed, then initialization is stopped and terminated.

@fix
2016-03-07 19:56:35 +09:00
Jaehyun Cho d0ef7f8c68 setting: Check entry string before translating to integer.
@fix
2016-03-07 19:34:41 +09:00
Jaehyun Cho d64c7ca196 live_edit: Prevent memory overflow case.
Emum value Ctrl_Pt_Cnt is only used to set array size.
Therefore, Ctrl_Pt_Cnt should not be used as an index value.

@fix
2016-03-07 17:22:34 +09:00
taehyub 49fae1fe40 text_setting: fix the unsafe code of string function
Summary:
fix the unsafe code like strcat and strcpy.
it is changed to strncpy, strncat

@fix

Reviewers: Hermet, NikaWhite, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3761
2016-03-07 12:13:07 +09:00
taehyub 3a4e1dec9e enventor_smart: change the postfix operator to prefix operator to check next pointer
Summary:
if(!(ptr++)) code check current pointer then it is updated next pointer.
so I changed the postfix operator to prefix operator to check next pointer in the condition.

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3762
2016-03-07 12:02:09 +09:00
Hermet Park 3f8dfe944c edj_viewer: fix a problem that live view failed to update images.
This problem scenario belongs to the image modification by an other process.
If an image size is very huge, live view possibly lost the image monitoring
because of asynchorous file handling.

Here solution is to update images repeatedly for those unexpected case.

@fix T3094
2016-03-05 13:02:18 +09:00
Hermet Park 964a31831d remove compile warnings.
1. unused variable.
2. compare signed and unsigned
3. undelcared function call.
2016-03-05 11:49:12 +09:00
Hermet Park 6428fd4ede remove compile warnings.
insert brackets to declare structure initial values clearly.
2016-03-05 11:40:18 +09:00
Hermet Park 78ec05cb0d get rid of compile warnings.
use parentheses around assignment used as truth value.
2016-03-05 11:34:46 +09:00
Hermet Park 3a43682695 remove unused compile warnings. 2016-03-05 11:31:37 +09:00
Hermet Park 6d2b4a01b4 remove unused compile warnings. 2016-03-05 11:27:24 +09:00
Hermet Park 3a2c08e6c5 editor: don't auto save always.
If save has been accomplished, we can skip a auto save.

This auto save brings enventor unexpected error highlighting twice.
2016-03-05 11:17:15 +09:00
Hermet Park 332bbeda4f editor: reset cursor position when edc is loaded.
edc editor needs to reset cursor position when a edc is newly loaded.

People granted this behavior.
2016-03-05 00:31:28 +09:00
Hermet Park 7795dbe101 editor: fix initial max line 0 issue.
Update max line correctly of the statusbar.
This fix brought Enventor_Max_Line passed away
because Enventor_Cursor_Line can be used instead.

@fix
2016-03-05 00:26:41 +09:00
taehyub c8f5d743cb goto: add null checking about the return value of elm_entry_entry_get
Summary:
there is no null checking condition,
so I added the null checking condition about the return value of elm_entry_entry_get.
@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3763
2016-03-04 23:39:35 +09:00
taehyub a512a80782 edc_editor: add null checking in error_line_num_highlight function
Summary:
in error_line_num_highlight, utf8 can be null.
so, I added null checking about it.

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3764
2016-03-04 23:39:14 +09:00
taehyub 20b99c0d48 base_gui: fix the wrong condition
Summary:
There is a wrong condition in base_gui.c like if ((w>0) && (w>0)).
The condition compares to same rule.

@fix

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3767
2016-03-04 23:38:41 +09:00
taehyub 04415c8d70 edc_navigator: add return value
Summary:
There is a missing return value in edc_navigator.c

Reviewers: Jaehyun_Cho, NikaWhite, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D3768
2016-03-04 23:36:27 +09:00
taehyub ad35ab32aa template: select the random name after inserting live view part
Summary:
select the random name after inserting live view part or template part.

Test Plan:
1. insert a part using Live View
2. see the selection region of random name of Live View
3. insert a templte using Ctrl + t
4. see the selection region of random name of template

@T3014

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3743
2016-03-04 16:32:58 +09:00
taehyub 26570d64c0 template: Fix undo error by correcting cursor position
Summary:
There is a memorizing cursor in wrong position, it cause undo error.
If insert the description template, undo operation is not working correctly.

@fix

Test Plan:
1. press ctrl + t in the part, then insert description part
2. press ctrl + z, undo the code
3. see the normal operation

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3760
2016-03-04 16:19:42 +09:00
taehyub 3cb3dfdda7 ctxpopup.c: change sprintf function to snprintf function
Summary:
change sprintf to snprintf for code safety

@fix

Reviewers: Hermet, Jaehyun_Cho, NikaWhite

Differential Revision: https://phab.enlightenment.org/D3757
2016-03-04 16:12:37 +09:00
taehyub d86d1f38ee ctxpopup.c: change strcat function to strncat function
Summary:
change strcat to strncat for code safe

@fix

Reviewers: Hermet, Jaehyun_Cho

Differential Revision: https://phab.enlightenment.org/D3755
2016-03-04 16:06:20 +09:00
Jaehyun Cho 509b9bd628 edc_editor: Support auto save to update preview.
auto save function saves edc file and updates preview by using timer.
auto save timer is applied when entry is changed or redo/undo is done.
auto save timer is cancelled when candidate list or auto complete list
appears.
2016-03-04 10:32:30 +09:00
Jaehyun Cho b488c57a9c edc_editor: Fix to call "edc,modified" callback when edc is modified.
Previously, "edc,modified" callback is called only if
enventor_object_save() is called.
To call "edc,modified" callback when edc is modified, "edc,modified"
callback is called in edit_save().
2016-03-04 10:32:24 +09:00
Jaehyun Cho b656f774d9 Fix to apply Eo4.
In Eo4, eo_do, eo_do_ret, eo_do_super, eo_do_super_ret are not used.
2016-03-04 09:22:27 +09:00