Commit Graph

388 Commits

Author SHA1 Message Date
Daniel Juyung Seo ac25946a19 elm: introduce ELM_FREE_FUNC for code quality enhancement.
There are pros and cons but this
1. reduces human mistakes.
2. enhances readability.
3. enhances code quality.
4. removes future bug.
5. was adopted from enlightenment.

This is not all. I will work on enhancing elementary more and more.
2013-05-22 02:24:02 +09:00
Youngbok Shin e847b65e2f entry: elm_entry_markup_filter_remove() has a problem when internally defined filters are used. fixed.
When we call elm_entry_markup_filter_remove() with internally defined filter callbacks,
it doesn't work. So we need a one of pointer for saving the address of data.

10 Elm_Entry_Filter_Limit_Size lim;
11 lim.max_char_count = 20;
12 lim.max_byte_count = 0;
13 elm_entry_markup_filter_append(en, elm_entry_filter_limit_size,
&lim);
14
15 elm_entry_markup_filter_remove(en, elm_entry_filter_limit_size,
&lim);
16 lim.max_char_count = 50;
17 lim.max_byte_count = 0;
18 elm_entry_markup_filter_append(en, elm_entry_filter_limit_size,
&lim);

In this code, we expect to see the filter of entry will be renewed.
But elm_entry_markup_filter_remove() doesn't work.
Because, markup_filter does not hold the address of data when we use
the filter callback which is defined in elm_entry.c

_filter_new() in elm_entry.c
You can see that _filter_new allocates new pointer and names as lim2.
lim2 is saved in data of _Elm_Entry_Markup_Filter. So the address of
data doesn't equal to the input data.
2013-05-16 18:10:13 +09:00
Youngbok Shin a68f086008 elm_entry : Fix ctxpopup can't be called again in the mobile mode entry. 2013-05-14 14:06:21 +01:00
Chris Michael 76eb5c8a1b Add missing HAVE_ELEMENTARY_X guards.
NB: Fixes ticket T107: Building elementary with only wayland support.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-13 12:20:13 +01:00
WooHyun Jung bb3e1ab36e elementary/elm_entry : Fixed wrong typo. 2013-05-13 09:00:50 +09:00
WooHyun Jung 267462dd00 elementary/elm_entry.c : Just changed lines for the sequence of alphbet. 2013-05-06 21:01:50 +09:00
WooHyun Jung 7e9ef0f10d elementary/elm_entry.c : Add elm_entry smart callback, named text,set,done. This smart callback will be useful when long text has been set and developer want to know the timing of setting whole text to the entry. 2013-05-06 20:42:34 +09:00
WooHyun Jung 350fa0366a elementary/elm_entry.c : Filter_accept should consider meanless tags and should not remove it. Thanks YoungBok Shin. 2013-05-06 15:51:54 +09:00
Cedric Bail c929b33052 elementary: properly sanitize headers order. 2013-05-03 16:07:06 +09:00
WooHyun Jung ff97c5019e * elm_entry_filter_accept_set function not can recognize tags. 2013-05-02 14:49:45 +09:00
Daniel Zaoui 187d6bf8de Elementary: replace eo_data_get for objects data referencing. 2013-05-01 11:04:09 +03:00
Daniel Juyung Seo b2663b9d16 elm_entry, elm_layout: fixed formatting.
1. fixed formatting.
2. removed unnecessary lines.
2013-04-17 14:16:56 +09:00
Daniel Juyung Seo dadd9e0c4c elm_entry.c: moved comments to a proper place. 2013-04-16 20:05:04 +09:00
WooHyun Jung 68dd4b5f4e elementary/elm_entry : When entry is disabled, scrolling is also disabled. 2013-04-16 17:59:02 +09:00
Thiep Ha 22ff7be1b6 Currently in entry, there is no callback for copy/cut context menu
item click.
This patch adds callback for copy/cut context menu item click,
so that application developers can add their own processing for
copy/cut item click event.
2013-04-16 13:16:44 +09:00
Daniel Juyung Seo 74b3eed5fd elm: print the error message inside elm_widget_sub_object_add().
1. Do not need to print the same error message from all the widget codes.
2. Even though elm_widget_sub_object_add() can be used internally, there should be no error message at all.
   Elm devs should fix it beforehand.
   So it looks ok to print the error message in elm_widget_sub_object_add() to force elm devs to fix it.
3. Got additional code cleanups.
2013-04-03 11:28:53 +09:00
Ryuan Choi 8b577874c2 elm_entry: Menu key does not work on elm_entry
This patch adds a behavior that open hoversel to choose copy/paste when pressed menu key.
2013-04-03 03:12:32 +09:00
Jihoon Kim 1b8ad509fc Add APIs - elm_entry_input_panel_layout_variation_set/get 2013-03-27 17:34:19 +09:00
Tom Hacohen d75cb616da Change usage of eo_do_super to the new prototype. 2013-03-18 16:15:12 +00:00
Carsten Haitzler d4bc61f941 allow for a special different single line entry scroller - needed for
dark theme fun. it falls back to a normal entry scroller if not found.
2013-03-13 20:24:09 +09:00
Daniel Juyung Seo 4a5f9459fe elm_entry.c: fixed formatting. 2013-03-11 20:11:50 +09:00
Tom Hacohen 1eefdc8733 Entry: Fixed a bug with text appending.
The target buffer was not large enough.
2013-03-11 10:21:08 +00:00
Daniel Juyung Seo 78c042cdbe elm *.c: fixed formatting with EINA_LIST_FREE.
EINA_LIST_FREE (xxx) -> EINA_LIST_FREE(xxx)
2013-03-09 13:23:42 +09:00
Gustavo Lima Chaves 312d0217a0 An internal layout error, on a widget set, is a CRITICAL error. 2013-03-01 23:04:31 -03:00
Carsten Haitzler 56d4729538 Change description:
Issue: Currently There is no possibility in entry to get currently
selected context menu item’s contents i.e., Label, icon etc:- due
to this issue a separate callback has to be added per item or the
item's contents has to be sent in data.

Fix: This patch fixes this problem by sending item pointer as
event_info and providing APIs to access the item pointer. This fix is
very useful for applications which add their own context menu items to
entry's context menu.

Signed-off by: Shilpa Singh(shilpa.singh@samsung.com)
2013-02-27 21:06:05 +09:00
Carsten Haitzler 3091ccc3f6 flesh out a lot more of dnd support in elm and add apis to set up dnd
targets for objects as well as initiate a dnd.



SVN revision: 84282
2013-02-21 13:21:08 +00:00
Mike Blumenkrantz 6fcab85ab0 forwardport previous entry commit for blocking blank hoversels
SVN revision: 84023
2013-02-17 14:36:00 +00:00
Daniel Zaoui cdd1eea853 Replace supported_types
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 83803
2013-02-10 07:52:31 +00:00
WooHyun Jung e259a3b645 elementary/elm_entry : elm_entry_single_line_set should not change cnp_mode when PLAINTEXT mode.
SVN revision: 83702
2013-02-07 05:55:49 +00:00
Shinwoo Kim 0e209af100 [access][entry] fix non-initialize problem on access_state_cb();
SVN revision: 83511
2013-01-31 11:07:26 +00:00
Shinwoo Kim 519aba8fa8 [access][entry] to read out properly when there is no state value
SVN revision: 83506
2013-01-31 10:56:18 +00:00
Shinwoo Kim 2ae92dba30 [access][entry] read out text without markup information
SVN revision: 83119
2013-01-23 04:07:57 +00:00
Cedric BAIL 5f655fecae efl: deprecate eina_unicode_utf8_get_next, add eina_unicode_utf8_next_get.
SVN revision: 83048
2013-01-22 02:00:55 +00:00
WooHyun Jung a98bec12c1 elementary/entry : When string in entry is changed, access to sd should be forbidden after smart_callback_call is called.
SVN revision: 83001
2013-01-19 06:17:05 +00:00
Christopher Michael ef44d05696 Data is not used in the show_region_hook anyway, so no need to pass it.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82572
2013-01-10 14:06:50 +00:00
WooHyun Jung 05b4f1fe58 elementary/elm_entry : When limiting the length of text by filter callback, only committed text should be considered. Preediting text can be changed with the shorter one.
SVN revision: 82341
2013-01-07 11:37:53 +00:00
Daniel Juyung Seo ffa9c1e793 elm: Refactoring.
Smart data is already initialized so we do not need to re-initialize them if the value equals to 0, NULL, or EINA_FALSE.
Sometimes re-initializing smart data explicitly is needed for readability. So there are left overs.

SVN revision: 82228
2013-01-04 19:10:19 +00:00
WooHyun Jung 733e98473d elementary/entry : Removing unused codes.
SVN revision: 82144
2013-01-04 04:32:30 +00:00
Shinwoo Kim f10fb3e115 [access] export some APIs,and remove unnecessary lines.
+ elm_access_object_register();
  + elm_access_object_unregister();
  + elm_access_text_set();
  + elm_access_text_get();
  + elm_access_cb_set();

These APIs are to use edje part, evas object as an accessible object.
and do not create access object, because access object would be created at run time.
This is different with internal API _elm_access_object_register();


SVN revision: 81659
2012-12-23 14:50:56 +00:00
Jihoon Kim 19f51743f4 elm : fix memory leak in entry
SVN revision: 81538
2012-12-21 11:03:10 +00:00
Cedric BAIL a1da9e6b65 elementary: simplify test in elm_entry_text_set.
SVN revision: 80413
2012-12-07 07:12:58 +00:00
Cedric BAIL 901d685a45 elementary: more typo.
SVN revision: 80322
2012-12-06 09:02:22 +00:00
Cedric BAIL 9ce131754f elementary: fix borkage.
SVN revision: 80320
2012-12-06 09:00:18 +00:00
Cedric BAIL 4e17a72fc7 elementary: properly read file in elm_entry.
SVN revision: 80300
2012-12-06 07:28:57 +00:00
Cedric BAIL 8327932076 elementary: add a mode to entry to clear selection when loosing focus.
Patch by Thiep Ha <thiep.ha@samsung.com>.


SVN revision: 79821
2012-11-29 08:58:49 +00:00
Yakov Goldberg 5c98343198 We have ported to Eo all the widgets of elementary. We didn't change the inheritance itself, only the mechanism, as done previously in Evas, Ecore and Edje. We removed totally the previous inheritance mechanism.
Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79668
2012-11-26 06:32:53 +00:00
Daniel Juyung Seo 19401ad202 elm elm_entry.c: Fixed 1. Removed duplicated have_selection check. 2. enable have_selection only when a text is actually selected. Patch by Thiep Ha <thiep.ha@samsung.com>
On Mon, Nov 19, 2012 at 9:33 PM, thiep ha <thiep.ha@samsung.com> wrote:

    Dear All,

    I have seen that if there is no selection in an entry, the copy/cut menus are still shown in entry.
    (Example: double click at the end of entry or on an empty entry).
    I modified source code to not show copy/cut menus in above scenario.
    I also removed the redundant checking condition for showing copy/cut menus.
    Please review this patch.

    Best Regards,
    Thiep Ha

SVN revision: 79545
2012-11-22 15:15:55 +00:00
WooHyun Jung b684a2ccf7 elementary/elm_entry : From. Thiep Ha.
In elementary, the disabled entry works incorrectly.
We still can cut/paste from/to it.



SVN revision: 78836
2012-11-02 08:15:24 +00:00
Cedric BAIL 768ac0b219 elementary: quick bug fix.
WARNING: I don't believe this is the proper bug fix for an uninitialized
memory access, but I really don't know this code enough. Tasn if you could
look at it when you have time.


SVN revision: 78511
2012-10-26 09:00:14 +00:00
WooHyun Jung 87bc405a68 elementary/elm_entry : Add widget checking for some APIs.
SVN revision: 78207
2012-10-19 00:56:03 +00:00