Commit Graph

6330 Commits

Author SHA1 Message Date
Daniel Juyung Seo 758d01ef99 elm_entry.c: removed unnecessary line. 2013-07-03 13:13:11 +09:00
Daniel Juyung Seo 19cec53fff elm_widget_entry.h: added more comment for entry + formatting fix. 2013-07-03 13:13:11 +09:00
Carsten Haitzler 651214b722 put a lot more hysterisis on drag detects in genlist... 2013-07-02 19:33:00 +09:00
Jaehwan Kim c25006bd20 Fix the timing which the content_viewport_resize callback is called.
It is proper when the EVAS_CALLBACK_RESIZE is called instead of _pan_smart_resize.
When the _pan_smart_resize is called, the geometry of an object is not changed.
So the widget use the signal can miss-calculate the size.
2013-07-01 20:17:30 +09:00
ChunEon Park 66a489a14d elementary/naviframe - If the current item is added as the resize object, the previous will be canceled.
Now, keep the smart members always.
2013-06-30 17:42:59 +09:00
Jaehwan Kim 577166b06e Remove Warning 2013-06-30 15:30:06 +09:00
Jaehwan Kim de36ba66cf Fix the parameter. This is related to previous commit. 2013-06-30 15:15:08 +09:00
Jaehwan Kim d418b27b96 Add the elm_scrollable_interface_content_viewport_resize_cb_set.
When the viewport is resized, the enrolled function is called.
2013-06-30 14:42:34 +09:00
Ryuan Choi 0ccfc31ee1 fileselector: Fixed regression of rELM3d2ae6d25ddc
https://phab.enlightenment.org/T198

After rELM3d2ae6d25ddc, buttons are destroyed when ok_cancel_set(true) is
called twice.
Spotted by uartie.
2013-06-29 07:27:23 +09:00
Daniel Zaoui db3db8ba59 DnD: rotate the dragwin of the user icon according to the rotation of
the main win.
2013-06-28 11:15:59 +03:00
Cedric Bail a0f3716168 elementary: fix build without public Eo API turned on. 2013-06-28 10:23:14 +09:00
Ryuan Choi 27f6087892 Prefer eina_stringshare_strlen for shared strings 2013-06-27 19:24:18 +09:00
Daniel Willmann df2b8a24a0 elc_naviframe: Use ! instead of ?-operator in _resize_object_reset()
Shorter and easier to understand this way.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-27 09:40:06 +01:00
Carsten Haitzler f0e4b05a86 elm config: fix all_flush to not delay as this causes odd behavior in feedback loops with x11 and property changes 2013-06-27 17:30:00 +09:00
WooHyun Jung 6535743497 elementary/elm_entry.c : Removed test log. 2013-06-27 17:09:35 +09:00
WooHyun Jung 7447477981 elementar/elm_entry.c : Just fixed memory leak by elm_entry_utf8_to_markup. 2013-06-27 16:30:54 +09:00
Ryuan Choi 989c343d16 fileselector : Fix Segfault in elementary file_selector_example when closed
https://phab.enlightenment.org/T133

list_itc and grid_itc are static variables, but they were managed by file_selector instance.
For example, they are allocated two times and first allocated classes are dangling
when two file selector are created.

This patch moves their init/deinit logic to constructor/destructor of file selector class.
2013-06-27 15:38:46 +09:00
Daniel Juyung Seo 43abefe26f elm_gesture_layer.c: fixed warnings. 2013-06-27 10:43:45 +09:00
Alex Wu d9414a6d5d elm_cnp: Fix building issue when not defined HAVE_ELEMENTARY_X
Put the static function that will be used both by wayland
and x11 at the common place.
2013-06-27 10:30:36 +09:00
Daniel Willmann be9e031e07 elm_win: Cast Ecore_X_Illume_Indicator_State to Elm_Win_Indicator_Mode
Avoids a warning in clang

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-26 18:06:18 +01:00
Daniel Willmann 420bf76bc9 elm_entry: Explicitly cast Elm enums to their Edje counterparts
and vice versa. Avoids some warnings in clang and it helps see that
these are actually different types.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-26 17:54:26 +01:00
Daniel Willmann a856be3c59 elc_naviframe.c: Correctly call _resize_object_reset()
Incorrect use of the ?-operator...

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-26 16:45:54 +01:00
Daniel Zaoui 50218ec1ba DnD: move NULL check to a better place 2013-06-26 15:02:09 +03:00
Daniel Zaoui e49de4c97b Gesture Layer: support multiple callbacks per type/state.
elm_gesture_layer_cb_add/del functions have been added to provide this
functionality.
elm_gesture_layer_cb_set provided only one callback and so was
overriding the callback with the new one.

For ABI compatibility, some rules were needed:
- when set function is called with NULL, all the callbacks of the state will be
removed (old behavior respect)
- try to use set or add/del exclusively with a preference to the new
APIs. This is because of the first rule and because it will be more correct.
- if you remove a callback, only one instance of this callback of this
type/state for this gesture will be removed, by comparing func and data.
It means that if you register twice the same callback/data, it will be added
twice and you will have to remove also twice too.
2013-06-26 14:37:52 +03:00
Ryuan Choi c6190fa7bb elm_font: Remove unnecessary realloc 2013-06-25 19:37:57 +09:00
Daniel Zaoui aea9b1d262 Gesture Layer: Add API to set the finger size for taps.
The default value is the one stored in elm_config.
2013-06-25 10:43:04 +03:00
Aharon Hillel dcab3545cf Gesture Layer: fix to improve fingers taps registration
Signed-off-by: Aharon Hillel <a.hillel@samsung.com>
2013-06-25 10:42:39 +03:00
Daniel Juyung Seo bcd0f81381 elm_image_legacy.h: updated elm_image_file_set() documentation for animated gif image. 2013-06-25 11:20:25 +09:00
Daniel Juyung Seo 59c5970c72 elm_image.c: eo refactoring. place internal functions into a better place. 2013-06-25 11:15:15 +09:00
Ryuan Choi 0bda4b1918 elm_notify: Fix crash when timeout is zero
Because _timer_init() can be called multiple times,
sd->timer should be cleard if we will not add new timer

This fixes https://phab.enlightenment.org/T178
Thanks brian.lovin for the report.
2013-06-25 08:18:25 +09:00
Ryuan Choi fec9eab52c fileselector: Fix possible leak of _buttons_ok_cancel_set
When called _buttons_ok_cancel_set(true) two times,
buttons are created without release.
2013-06-25 06:08:18 +09:00
Ryuan Choi ce69eac081 fileselector: Added @since 1.8 for new APIs
4c7285d add new APIs but missed "@since 1.8"
Spotted by Hermet.
2013-06-24 20:09:26 +09:00
Ryuan Choi 2cfa0ce7db file selector:Add support mime type filter 2013-06-24 15:42:51 +09:00
ChunEon Park cdae0e4064 elementary/ctxpopup - more clean code. 2013-06-24 09:54:16 +09:00
Carsten Haitzler 153f5d9de2 genlist - fix some stacking issues when selecting items with group headers
stacking become a lot more complex when re-order mode was added, group
headers and more, so simple raise/lower wasn't enough, so this adds 2
stacking markers (rectangles) and objects are stacked above or below
these 2 markers. that basically provides 4 possible stacking slots
that are easy to address, and if you also still raise/lower you get 6
slots. use these markers for stacking so items go into a fixed
stacking layer when they stack around.
2013-06-23 15:17:39 +09:00
ChunEon Park 72f639543c elementary/ctxpopup - apply current ctxpopup style to the internal list. 2013-06-23 02:23:23 +09:00
ChunEon Park 36ad1cc0e8 ctxpopup - block mouse events when ctxpopup is on dismiss. 2013-06-22 15:21:00 +09:00
Thiep Ha d062cc2004 [Elm_Entry] Show magnifier when selection handlers are pressed or moved.
Show magnifier when selection handlers are pressed or moved.
This patch is depended on D171 patch.

Conflicts:

	ChangeLog
	NEWS
2013-06-22 12:37:15 +09:00
Thiep Ha ca66c7cc6c When mouse moves in longpress state, the cursor should be moved along
with magnifier.

Conflicts:

	ChangeLog
2013-06-22 12:26:37 +09:00
Jaehwan Kim cb8c288f42 Fix elm_scroller_page_show bug. It have to save the wanted values to show the wanted page. 2013-06-19 23:31:36 +09:00
Daniel Juyung Seo a7082cfb73 naviframe_example.c: added very simple naviframe example. 2013-06-19 02:02:17 +09:00
Jaehwan Kim a9bd591af9 In case of scroll in scroll, the child scroller have to bounce if parents don't have a bounce. 2013-06-18 16:28:06 +09:00
Daniel Juyung Seo a070c90ca1 elm_layout_legacy.h: added missing ingroup for layout documentation. 2013-06-18 03:15:50 +09:00
Gustavo Lima Chaves 515b1ec64a Better logic for elm_scroller_current_page_get() while scrolling/dragging.
We still report the topmost/leftmost page, but DURING animations we
return which of the competing pages on the top, left edge get the
majority of their regions in the viewport.
2013-06-17 13:23:45 -03:00
ChunEon Park 5488d7c1b4 elementary/naviframe - dont' be popped if the event is freezed and popping is going on. 2013-06-16 19:57:19 +09:00
Daniel Juyung Seo 64a8f6608e elm_genlist.h: added missing " in the documentation. 2013-06-15 23:48:44 +09:00
Ryuan Choi 5ae1e19911 elm_main : Do not release strings which eina_prefix returns
The getter functions of eina_prefix just returns internal string.
So they should not be released in application side.
2013-06-15 13:02:25 +09:00
Gustavo Lima Chaves 8e644dd21e Fix elm_scroller_child_size_get() to work all scrollables.
My bad on this one, it was never made to act like so since my
new widget schema.
2013-06-13 18:09:04 -03:00
Stefan Schmidt c44bd02f0e elm_gesture_layer: Fix potential NULL pointer dereference.
If _pointer_even_make is false pe stays NULL and might get dereferenced
later. Instead we return now if _pointer_event_make fails.

Thanks to Tom for consulting with the gesture layer code.
2013-06-13 16:25:14 +01:00
Ryuan Choi ff89b116db elm_web: Fix typo.
Thanks to ya-kov for reporting this.
2013-06-13 19:02:29 +09:00
ChunEon Park eaa94c2688 elementary/naviframe - oops, here more proper check. 2013-06-13 16:36:13 +09:00
ChunEon Park 5263213062 elemenatry/naviframe - keep the current view on top to have events and don't try to add member for the deleted dummy. 2013-06-13 15:46:16 +09:00
Ryuan Choi 1af4430e6a web/web2 : Deprecated uri. url will be used instead(2).
Sorry, I missed elm_web_legacy.h from previous commit.
In addition, updated ChangeLog and NEWS.
2013-06-13 13:56:16 +09:00
Ryuan Choi e11bbc24b5 web/web2 : Deprecated uri. url will be used instead.
ewebkit used uri and url as mixed for a long time.
But last year, ewebkit2 decide to use url for the consistency.

Below is discussion and webkit-efl bug about "uri vs url"
https://lists.webkit.org/pipermail/webkit-efl/2012-October/000312.html
https://bugs.webkit.org/show_bug.cgi?id=98643
2013-06-13 10:30:10 +09:00
ChunEon Park 7982138843 elementary/naviframe - more clean code 2013-06-12 22:28:40 +09:00
Daniel Juyung Seo c7cfcc43f2 elc_fileselector.c: check null path before fileselector populate.
If no path was selected we don't need to populate fileselector.
This fixes https://phab.enlightenment.org/T132.
Thanks uartie for the report.
2013-06-12 15:03:49 +09:00
Daniel Juyung Seo e92b0c4121 elm_check.h: updated check documentation.
"on" and "off" text parts work only with "toggle" style of check.
This fixes https://phab.enlightenment.org/T154
Thanks brian.lovin for the report.
2013-06-12 14:14:25 +09:00
Ryuan Choi c15ebf2e0e elm_web2: Implemented missing navigation and user-agent APIs. 2013-06-12 09:19:51 +09:00
Ryuan Choi 71a41a8c16 elm_web2: Fixed simple warning 2013-06-12 09:19:51 +09:00
Eduardo Lima (Etrunko) fffdaeb025 Split .gitignore into multiple files
Signed-off-by: Eduardo Lima (Etrunko) <eduardo.lima@intel.com>
2013-06-11 18:18:06 -03:00
ChunEon Park 3edbacc7d4 elementary/naviframe - it's not intended code. remove it. 2013-06-11 21:55:44 +09:00
Daniel Willmann c093a07541 els_tooltip: Only call ecore_x_pointer_xy_get() if we're in X
We don't want to call X functions (and segfault) if X is not actually
running.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-11 12:48:52 +01:00
Daniel Willmann 363da34f27 els_tooltip.c: Initialize px and py to zero
px and py might not be set if X support is not compiled in and
ecore_x_pointer_xy_get() is not called. In that case make sure they are
not used uninitialized.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-11 12:48:48 +01:00
Daniel Willmann 4d40f16f5e els_tooltip: Don't expect to have X running if support is compiled in
Refactor the code so common code is not duplicated inside the
if (transparent) and else blocks

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
2013-06-11 11:27:23 +01:00
Ryuan Choi 54663d2970 colorselector: Remove srgb and lrgb from Elm_Colorselector_Smart_Data
They are always calculated before used so they can be removed from smart data.
2013-06-11 18:57:37 +09:00
ChunEon Park 2368f82e31 elementary/naviframe - Keep the smart members of the naviframe views whenever resize object is changed.
This prevents the dangling view objects of the naviframe and keep the layer consistency.
2013-06-11 18:08:10 +09:00
Stefan Schmidt 06c869eece elc_fileselector: Small formatting fix.
Spotted by devilhorns. Somehow I feel watched here. ;)
2013-06-11 08:48:20 +01:00
Ryuan Choi 215e935ea1 colorselector: Do not send "changed" signal twice when pressed color bar
Regardless of color selector mode, mouse down captured color.
This patch moves callbacks related to picker mode to _start_grab_pick_cb.
2013-06-11 12:22:08 +09:00
ChunEon Park a1d3265cad naviframe - keep the animator just one. 2013-06-11 12:20:10 +09:00
Stefan Schmidt 33eca6e2c0 elc_fileselector: Fix memory leak in _selected_set.
Using ecore_file_dir_get() like this will leak the returned string as we
have no way to control its free'ing. Better use a separate variable for it.
2013-06-10 15:47:54 +01:00
Stefan Schmidt 125938e968 elm_cnp: Fix memory leak in error path.
We allocate info->filename in all cases but missed a free in the error path.
2013-06-10 14:53:11 +01:00
Ryuan Choi 15883b69ce elm_colorselector: Refactored not to change RGBA values many times.
For example, colors_set changed RGBA five times (The first is in colors_set itself,
the others are in _hsl_to_rgb which called by _rectangle_redraw).

First, this patch splits _rectangle_redraw to 3 separate functions,
_update_colorbars, _update_hsla_from_colorbar and _update_ergb.
So only proper functions will be called instead of _rectangle_redraw.

Second, SIG_CHANGED will be called when RGBA was only changed.
2013-06-10 16:38:35 +09:00
Daniel Juyung Seo e4c5d37ccc diskselector, icon, map, progressbar: no @since for smart callback just use since or it will cause line break in the doxygen documentation. 2013-06-10 14:54:08 +09:00
Daniel Juyung Seo a5066a5747 panel, video, web, web2: added focused, unfocused smart callback documentation. 2013-06-10 14:37:47 +09:00
Daniel Juyung Seo 6cf684f02a elm: added more "focused" and "unfocused" documentations.
genlist, hover, index, list, map, photocam, progressbar, radio, scroller, slider, slideshow, spinner, toolbar, win.
2013-06-10 14:13:55 +09:00
Daniel Juyung Seo f1b685897d elm: do not declare SIG_FUCSED/SIG_UNFOCUSED if the const char is not used more than once.
ctxpopup, fileselector_button, naviframe, player, popup, bubble, button, calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid.
2013-06-10 14:13:55 +09:00
Daniel Juyung Seo 37822734cc elm: fixed focused and unfocused documentation.
1. ctxpopup, fileselector_entry, naviframe, popup, bubble, button, calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid.
2. since 1.8
2013-06-10 14:13:55 +09:00
Daniel Juyung Seo 1d0521337c elm_panel.c: call elm_widget_can_focus_set() just once in smart add. 2013-06-10 14:13:55 +09:00
ChunEon Park 5eb167c922 elementary/conformant - remove the keyboard area in the conformant if the keyboard state is off. 2013-06-10 13:33:00 +09:00
Ryuan Choi c6ee22e312 Add myself in AUTHORS and elm_authors.h 2013-06-10 11:29:44 +09:00
Daniel Juyung Seo 8cf2c8a422 calendar, check, clock, colorselector, datetime, diskselector, flipselector, gengrid: added "focused" and "unfocused" documentations. 2013-06-09 18:55:42 +09:00
Daniel Juyung Seo 7b71bd1973 ctxpopup, fileselector_button, naviframe, player, popup, bubble, button: added "focused" and "unfocused" documentations. 2013-06-09 18:54:43 +09:00
Daniel Juyung Seo 3c7fb77167 elc_ctxpopup.h: more and better ctxpopup documentation for smart callbacks.
1. put numbers for the dismissed smart callback emit cases.
2. added missing language,changed smart callback documentation for ctxpopup.
2013-06-09 18:06:14 +09:00
Daniel Juyung Seo d7483ee627 elm_general.h: better documentation. 2013-06-09 18:01:21 +09:00
Daniel Juyung Seo 46d08b10f8 datetime, lable: use SIG_LANG_CHANGED instead of SIG_LANGUAGE_CHANGED for consistency. 2013-06-09 17:56:30 +09:00
Daniel Juyung Seo 99ed8edb84 elm_widget_toolbar.h: more internal toolbar documentation. 2013-06-09 17:47:39 +09:00
Daniel Juyung Seo d8057c52eb documentation: fixed a typo. 2013-06-09 17:14:31 +09:00
Daniel Juyung Seo ed24ca26d4 elm_widget.h: more widget documentation. 2013-06-09 17:13:07 +09:00
Daniel Juyung Seo 9353cdeac8 elm_widget.h: update elm_wdg_on_focus documentation. 2013-06-09 16:54:26 +09:00
Daniel Juyung Seo 253e6369e4 elm_widget.c: handle focus fail case. 2013-06-09 16:54:00 +09:00
ChunEon Park d260935270 elementary/naviframe - don't ignore the subtitle case 2013-06-08 18:13:26 +09:00
ChunEon Park 16bcf540b2 elementary/naviframe - return as soon as possible 2013-06-08 18:11:09 +09:00
ChunEon Park 8c7b28b4ed elementary/naviframe - try to read the titles only when title is set and title_area is visible 2013-06-08 18:10:17 +09:00
ChunEon Park 76465a7fdd elementary/naviframe - no! don't have the keyboard dependenccy with naviframe. 2013-06-08 17:40:39 +09:00
Carsten Haitzler 0c13ec5ced part of the entry magnifier feature set from thiep. still more to go. 2013-06-07 17:17:30 +09:00
Daniel Juyung Seo d878787b02 elm_win.c: changed EINA_LOG_INFO to INF to use elementary log domain. 2013-06-07 13:47:58 +09:00
Ryuan Choi 091498f4cc elm_clock: Removed unnecessary check routine
Small refactoring.
2013-06-07 13:01:33 +09:00
Boris Faure bda98e9dd3 fix compilation 2013-06-06 21:20:20 +02:00
Rafael Antognolli 678c41b289 elm/scrollable: Fix count of mouse move events.
It should use just the events that really happened (after the mouse move
starting timestamp).
2013-06-06 14:24:37 -03:00
Rafael Antognolli cc19e3948d elm/scrollable: Avoid division by zero during scroll.
When several mouse move events arrive with the same timestamps, the
calculation done to get an average of movement will try to divide things
by zero. This fix will make it ignore this calculation and just go back
to assuming that there's only one last move event.

Such behavior can happen on wayland backend, when using the X11 backend
for Weston, since it will process several X events in one loop iteration
and send all of them with the same timestamp.
2013-06-06 14:24:37 -03:00
Rafael Antognolli 14cc29a188 elm/scrollable: Fix typo that came with ELM_FREE_FUNC. 2013-06-06 14:24:37 -03:00
Daniel Juyung Seo 8bfdbd2ba6 elm: all the focusable widget now emits "focused" and "unfocused" smart callbacks.
1. documentations, NEWS, and ChangeLog will be updated later after some more test.
2. need to check entry.
2013-06-07 01:13:37 +09:00
Daniel Juyung Seo 93fb6bcde9 elm_entry.c: put focused and unfocused together for the readability. 2013-06-07 00:35:53 +09:00
Ryuan Choi ee4ba61327 elm_clock : The step of hour decimal in editing mode should be 12 not to touch hour unit. 2013-06-06 07:54:51 +09:00
Chris Michael dd2e663651 Initialize 'win' to NULL and only return a window id if we have a
valid 'win'

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-06-05 18:21:55 +01:00
Chris Michael 04ff986be5 Check for valid savedtypes imgfile before trying to use it.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-06-05 12:57:10 +01:00
ChunEon Park bfc63634c1 elementary/naviframe - fix the naviframe to recover the focus when top item is deleted 2013-06-05 16:31:49 +09:00
Shinwoo Kim 4ec80b4e9f Revert "[Access] Add new API to register a part on an object item as an access object."
This reverts commit 741243b645248223527ef834ed0dc10622a0ffd3.
2013-06-05 15:05:58 +09:00
Daniel Juyung Seo cc77713da3 gengrid/genlist: added index,update smartcallback documentation. 2013-06-05 14:50:34 +09:00
Daniel Juyung Seo d0d4afd590 elm: refactoring. no printf in the library. use eina log instead. 2013-06-05 14:40:03 +09:00
Ryuan Choi 287f3cee1c elm_colorselector: Update color bar when color was picked by color picker. 2013-06-05 09:11:16 +09:00
Tae-Hwan Kim 9aaf2f5587 [Access] Add new API to register a part on an object item as an access object.
Author: bluezery
2013-06-04 19:34:18 +09:00
Leif Middelschulte d031934ff4 Fix segfault related to strdup.
Summary: This patch fixes a segfault that happens when you create a flipselector theme without an "elm.top" part.

Reviewers: cedric

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D156
2013-06-04 12:09:47 +02:00
Ryuan Choi 152deb9a9a elm table: Fixed wrong description and argument name about packing API 2013-06-04 16:50:03 +09:00
Shinwoo Kim 5c6b745ea7 elm_gesture_layer.c: add EVAS_CALLBACK_DEL to the target object. The target object could be deleted before deletion of the gesture layer. 2013-06-03 20:48:15 +09:00
Daniel Zaoui b59ce96e86 Elementary/DnD: fix creation of dragwin.
It seems that the order of show and move for a window is important.
2013-06-03 09:56:18 +03:00
WooHyun Jung 9cd0a65523 elementary/elc_popup : Popup should get focus when elm_object_focus_set is tried on it even though there is no focusalbe child in it. 2013-05-31 16:22:28 +09:00
Daniel Juyung Seo 94894ad8ec elm_gengrid/genlist.h: flourish documentation for 'moved' smart callback. 2013-05-31 14:53:55 +09:00
Daniel Juyung Seo fcf5059148 elm_interface_scrollable.c: initialize more local variables spotted by valgrind. 2013-05-30 23:52:08 +09:00
WooHyun Jung 9c690eb61a elementary/elc_ctxpopup : When content is not internal elm_list, focus direction should be controlled inside ctxpopup. 2013-05-30 15:24:32 +09:00
ChunEon Park 0817e697c0 elementary/mapbuf - removed white trailing 2013-05-30 02:37:35 +09:00
ChunEon Park fe7118ec67 elementary/mapbuf - fix the mapbuf to be enabled before it's content is entirely rendered.
This will fix the bad-cases that content is not updated properly if they are changed outside of the viewport
2013-05-30 02:31:38 +09:00
Daniel Juyung Seo 43cbb2e43e elm_priv.h: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.

THE LAST COMMIT OF ELM_SAFE_FREE STREAM.
I double checked all of my previous commits but if there is any issue, please contact me on irc #edevelop with SeoZ or SeoZ[galaxyS3].
Thanks.
2013-05-29 21:12:52 +09:00
Daniel Juyung Seo 416981aecc elu_ews_wm.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:12:22 +09:00
Daniel Juyung Seo 8ea7760db4 els_tooltip.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:12:04 +09:00
Daniel Juyung Seo cb691fc983 elm_win.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:11:46 +09:00
Daniel Juyung Seo 1a2cc11167 elm_web.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:10:45 +09:00
Daniel Juyung Seo 2d8d13a26c elm_video.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:10:05 +09:00
Daniel Juyung Seo 72879a226f elm_transit.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:09:21 +09:00
Daniel Juyung Seo 4355c54715 elm_toolbar.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:08:50 +09:00
Daniel Juyung Seo 29a3cb3105 elm_thumb.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:08:22 +09:00
Daniel Juyung Seo 90f4afc682 elm_theme.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:08:05 +09:00
Daniel Juyung Seo c2747996da elm_store.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:07:52 +09:00
Daniel Juyung Seo 2f5ef21462 elm_spinner.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:07:24 +09:00
Daniel Juyung Seo 6ce1fcccfa elm_slideshow.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:06:48 +09:00
Daniel Juyung Seo cbde4c55ca elm_slider.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:06:22 +09:00
Daniel Juyung Seo 8723a085e0 elm_photocam.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:05:37 +09:00
Daniel Juyung Seo e4e2c38e48 elm_photo.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:05:09 +09:00
Daniel Juyung Seo 82dd59fba5 elm_notify.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:04:49 +09:00
Daniel Juyung Seo 14a50de4d1 elm_module.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:04:40 +09:00
Daniel Juyung Seo e5e105342f elm_mapbuf.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:04:07 +09:00
Daniel Juyung Seo fce66c4296 elm_map.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:03:51 +09:00
Daniel Juyung Seo f7449d9ea5 elm_main.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.

In this commit, I used ELM_SAFE_FREE even inside shutdown function.
2013-05-29 21:00:40 +09:00
Daniel Juyung Seo 1c1da31da3 elm_list.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 21:00:12 +09:00
Daniel Juyung Seo 4cea5af2dc elm_interface_scrollable.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:58:29 +09:00
Daniel Juyung Seo c024dee61c elm_index.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:57:58 +09:00
Daniel Juyung Seo 9a7bbbf3be elm_image.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:56:07 +09:00
Daniel Juyung Seo 7154e2c916 elm_icon.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:55:19 +09:00
Daniel Juyung Seo 37511fda1d elm_gesture_layer.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:54:30 +09:00
Daniel Juyung Seo e533e0e9c8 elm_genlist.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:54:11 +09:00
Daniel Juyung Seo 4738e0d6ae elm_gengrid.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:53:13 +09:00
Daniel Juyung Seo df2b288846 elm_flipselector.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:52:32 +09:00
Daniel Juyung Seo 2bbc41d4ae elm_flip.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:52:16 +09:00
Daniel Juyung Seo 742fa688d8 elm_entry.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:51:06 +09:00
Daniel Juyung Seo b54fb12f8b elm_conform.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:50:14 +09:00
Daniel Juyung Seo 6f65981864 elm_config.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:49:54 +09:00
Daniel Juyung Seo 1045cab8a7 elm_colorselector.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:47:36 +09:00
Daniel Juyung Seo 652ad1417f elm_cnp.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:47:08 +09:00
Daniel Juyung Seo 70988bc471 elm_priv.h: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:44:39 +09:00
Daniel Juyung Seo 602b04c578 elm_clock.c: ELM_SAFE_FREE adoption.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:44:08 +09:00
Daniel Juyung Seo d567f121ff elm_calendar.c: ELM_SAFE_FREE adoption for calendar.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:41:37 +09:00
Daniel Juyung Seo a9e5a2bf63 elm_button.c: ELM_SAFE_FREE adoption for button.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:41:01 +09:00
Daniel Juyung Seo 6320433058 elm_box.c: ELM_SAFE_FREE adoption for box.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:40:06 +09:00
Daniel Juyung Seo 7eef2d1892 elm_bg.c: ELM_SAFE_FREE adoption for bg.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:22:54 +09:00
Daniel Juyung Seo b0f793baa7 elm_access.c: ELM_SAFE_FREE adoption for access.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:22:16 +09:00
Daniel Juyung Seo 9e3517fbcd elc_popup.c: ELM_SAFE_FREE adoption for popup.
I splited ELM_SAFE_FREE refactoring patches. One commit per each file as recommended.
For the detail, please refer 3072dab12f12fe83fb5a628d15efd5cded11787f.
2013-05-29 20:20:58 +09:00
Daniel Juyung Seo 6ac249e370 elc_player: ELM_SAFE_FREE adoption.
1. ELM_FREE_FUNC -> ELM_SAFE_FREE
2. There were a lot of suggestions and consideration in the mailing list.
ELM_SAFE_FREE will be used only when it checks the pointer, deletes it, and initializes it to NULL.

ex)
if (timer)
  {
     ecore_timer_del(timer);
     timer = NULL;
  }
=>
ELM_SAFE_FREE(timer, ecore_timer_del);

My first aim was to remove many human mistakes but it looks like people want more optimized code in a code level.
So this macro will be used only for reducing 5 lines of code into 1 line.
Otherwise, I will just call xxx_del() manually.

3. ELM_SAFE_FREE can be used for other del or free functions such as ecore_job_del, ecore_animator_del, eina_stringshare_del, free, ...
2013-05-29 20:11:47 +09:00
Daniel Juyung Seo 55a14655a2 elm_widget.c: formatting fix.
I am surprised that one space can annoy me.
2013-05-29 00:38:11 +09:00
Chris Michael e78ddf7a40 Add code to make Wayland Drag-n-Drop work in elementary client apps now.
NB: Handle with care ... code is still a bit experimental

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-28 12:01:24 +01:00
Chris Michael 6f82959191 Add elm_drag_action_set support for wayland and start on
elm_drag_start support.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-28 12:01:24 +01:00
Chris Michael 91a9693c79 Add elm drag item container support for wayland
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-28 12:01:24 +01:00
Chris Michael f69ec73e4b Add elm drop target support for wayland.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-05-28 11:50:51 +01:00
Seunggyun Kim 1bcd211857 Current elm_config has _elm_config->glayer_long_tap_start_timeout and _elm_config->glayer_double_tap_timeout variable but there is no api related to those.
Apps like setting want to change gesture tap timeout value on runtime.

So I added below APIs.
elm_config_glayer_long_tap_start_timeout_set/get
elm_config_glayer_double_tap_timeout_set/get
2013-05-28 19:11:14 +09:00
Carsten Haitzler 7a69eb2163 fix xdg config changes (not enabled yet but changes added segv). 2013-05-28 15:19:33 +09:00
Carsten Haitzler 643c9cff24 allow xdg dir usage if you add -DDOXDG to CFLAGS. 2013-05-28 12:31:59 +09:00
Jihoon Kim e9692aa769 Add ELM_INPUT_PANEL_LAYOUT_DATETIME 2013-05-27 16:20:18 +09:00
Tae-Hwan Kim 10a212a709 [list] Add signal emit hook.
Add signal emit hook same as genlist.
2013-05-27 13:25:18 +09:00
Daniel Juyung Seo 82ecdfbb25 elm popup,flipselector: removed unnecessary type casting and type check. 2013-05-27 01:20:05 +09:00
Daniel Zaoui a40bed2a38 Elementary: Fix scroller APIs to be usable by all the widgets using the
scrollable interface.
2013-05-24 16:31:25 +03:00
ChunEon Park 71bee6ddeb elementary/widget - plase update display mode whenever sub object is set 2013-05-24 18:34:37 +09:00
ChunEon Park 86f7d566c6 elementary/widget - removed elm_widgetdisplay_mode_get().
since INHERIT_MODE is removed and it' doesn't need to care here anymore.
2013-05-24 18:25:16 +09:00
Daniel Juyung Seo ef8701a173 elm: more ELM_FREE_FUNC cleanups. 2013-05-24 00:58:38 +09:00
Ryuan Choi cbe6ae16b0 elm_colorselector: Can't receive "changed" signal when clicked color palette.
As document mentioned, "changed" should be emitted when the color value is changed.
So, this patch emits "changed" signal when color value is really changed.
In addition, fixed some formatting issue of test_colorselector.
2013-05-23 18:47:07 +09:00
Daniel Juyung Seo b28104166a elm_colorselector.c: fixed my mistake :( 2013-05-23 17:27:09 +09:00
Daniel Juyung Seo a6376e31b1 elm_colorselector.c: Set the colorselector color first before calling "color,item,selected" callback.
Special thanks to Ryuan Choi. This was detected while reviewing his patch.
2013-05-23 17:24:13 +09:00
Daniel Juyung Seo d2ec066da5 elm_web.c: fixed typo. special thanks to ryuan choi. 2013-05-23 16:39:58 +09:00
Daniel Juyung Seo 5f053bf79a elm: refactoring. use more ELM_FREE_FUNC. 2013-05-23 15:54:49 +09:00
Hosang Kim 5eda949b8f [toolbar] fixed code for verification(ecore_job_add)
make a pair for job event, check the event is alive before adding event.
2013-05-22 16:55:23 +09:00
Daniel Juyung Seo 893a36be40 elm_priv.h: space-- 2013-05-22 13:10:32 +09:00
Rafael Antognolli 34af955495 elm/framespace: Get the framespace from the theme.
Additionally, if the frame object can't be created (no theme group
available), do not use it. This will enable us to have a borderless
elm theme.
2013-05-21 16:32:48 -03:00
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
Tom Hacohen 09589956a6 elm_config_clouseau_enable_* -> elm_config_clouseau_enabled_*.
Thanks to SeoZ for reporting this.
2013-05-20 17:38:00 +01:00
Daniel Juyung Seo 2d7b273b7c elm_diskselector.c: fixed potential bug of diskselector.
set the variable to NULL after freeing the list.
2013-05-21 01:25:08 +09:00
Tom Hacohen de1c965029 Made clouseau_enable an elm_config option.
You can now just use elementary_config to enable and disable clouseau on
run-time.
2013-05-20 14:46:44 +01:00
ChunEon Park 1e9ef8aa5b elemenatry/naviframe - don't pop the view if the freeze_event is enabled and some views are alreadying popping. 2013-05-20 20:43:22 +09:00
ChunEon Park 7c652d8a77 elementary/ews_wm - prevent to add a duplicated animator. 2013-05-20 19:17:57 +09:00
ChunEon Park 7f7cc5ad39 elementary/win - prevent to add the timer multiple times. 2013-05-20 19:09:13 +09:00
Gustavo Lima Chaves d8be9d6cf1 Scroller can me made to snap to pages on scrolling now. 2013-05-17 15:37:37 -03:00
Ivan Briano 86b4ab8276 Process messages after using the state_get of genlist items
This allows to make these states change the minimum size of the item
without the list calculating everything wrong.
2013-05-16 19:28:17 -03: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