Cedric Bail
b13db5ab8d
edje: forth recalc for text part that got adjusted during a calc_only.
2013-08-12 16:47:46 +09:00
Cedric Bail
2b68a31252
evas: handle gracefully move from evas_object_image_file_set to and from evas_object_image_mmap_set.
2013-08-12 12:12:13 +09:00
Cedric Bail
d72239a118
eina: remove a warning.
2013-08-12 12:11:56 +09:00
Cedric Bail
32fa458370
edje: fix forgotten fetch.
2013-08-12 08:58:37 +09:00
Cedric Bail
9a637112b4
edje: let's make a difference between file does not exist and no file specified.
2013-08-12 08:55:36 +09:00
Cedric Bail
ac26057519
edje: forgotten refcounting of Eina_File use.
2013-08-12 08:42:55 +09:00
Chris Michael
5ccf87c845
Remove unused variables.
...
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-08-11 14:02:21 +01:00
Carsten Haitzler
393040a9fe
adjust (as discussed) to have enums for memory and battery state.
2013-08-10 23:23:06 +09:00
Carsten Haitzler
1e9d4bf28f
evas - fix up border adjust improvement from last night. handles overlap now
2013-08-10 16:26:30 +09:00
Gustavo Sverzut Barbieri
6f2871a305
ecore: add upower system module.
...
It's always enabled as it's a dbus module and links to nothing,
actually the daemon doesn't need to be running -- in that case it will
do nothing. In the case the daemon becomes active then it will get the
OnLowBattery property and keep it in sync.
NOTE: I couldn't test the property change as my laptop takes many
hours to get to that situation... let's hope it works :-)
2013-08-09 16:39:10 -03:00
Gustavo Sverzut Barbieri
c0c5736a4e
ecore: add system modules, implement 'systemd'.
...
Ecore will now load "system modules" on ecore_init(). The "systemd"
module will use DBus to monitor localed, hostnamed and timedated and
add system events related to those changes.
2013-08-09 14:28:02 -03:00
Gustavo Sverzut Barbieri
ca39ff976e
ecore: detect and emit event on system time changed.
...
If we have timerfd then we can set a timer with special features
(ABSTIME | CANCELON) to be notified if its offset to monotonic time
change, effectively this will alert us if user called settimeofday()
or similar method to change system time.
This code was inspired by Enlightenment's clock module.
2013-08-09 12:14:00 -03:00
Gustavo Sverzut Barbieri
0a9c78896b
ecore: add system-level events.
...
- ECORE_EVENT_LOW_MEMORY: Low memory state changed
- ECORE_EVENT_LOW_BATTERY: Low battery state changed
- ECORE_EVENT_LOCALE_CHANGED: Locale changed
- ECORE_EVENT_HOSTNAME_CHANGED: Hostname changed
- ECORE_EVENT_SYSTEM_TIMEDATE_CHANGED: Time or Date changed
2013-08-09 12:14:00 -03:00
Tom Hacohen
76eceda2ee
Evas textblock: make an if look nicer (no logic change).
...
This makes things simpler and less confusing and might have prevented
the issue Stefan fixed in 4f484b81d4
from happenning in the first place.
2013-08-09 15:46:40 +01:00
Jérémy Zurcher
5afa29af59
eo: slight speed up
2013-08-09 16:03:09 +02:00
Carsten Haitzler
a18bdfc19f
evas - OOPS! printf was not meant to go in!
2013-08-09 22:30:14 +09:00
Carsten Haitzler
9b8f67ec4d
evas - minor visual fixup with impossible border scaling to be more sensible
2013-08-09 22:07:06 +09:00
Cedric Bail
7506faaca2
edje: add edje_file_mmap_set.
...
This reduce the number of system call to stat especially when using GROUP
and reduce the risk of a race condition when using GROUP.
2013-08-09 20:50:54 +09:00
Cedric Bail
861823848a
eina: change eina_file_virtualize to be able to provide a fake name.
2013-08-09 20:50:54 +09:00
Stefan Schmidt
4f484b81d4
evas/textblock: Do not write out of bounds.
...
The length is len so last array index must be len - 1. Better not
corrupt memory. :)
CID 1039302
2013-08-09 11:54:42 +01:00
Stefan Schmidt
84a7cefcc2
edje: Do not access after freeing
...
Better free it after we access it.
CID 1039917
2013-08-09 11:43:25 +01:00
Stefan Schmidt
d7d347da0a
eldbus: Fix copy and paste error.
...
We are in the remove case here. The interfaces_added looks like a missed change
from the copy and paste of the add case.
CID 1039671
2013-08-09 10:27:54 +01:00
Stefan Schmidt
d067c28e74
eet: Add comment about missing break in switch statement
2013-08-09 10:17:49 +01:00
Chris Michael
e811036199
Fix glib integration copy/paste issue:
...
- If we are supposed to be deleting an fd handler, let's use
g_source_remove_poll instead of g_source_add_poll ;)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-09 06:38:54 +01:00
Tom Hacohen
1d75dcaf56
Evas textblock: Make the ellipsis format the same as the surrounding.
...
This fix is based on a solution by WooHyun Jung.
2013-08-08 13:10:39 +01:00
Carsten Haitzler
fb3159c48e
eina module - minor addition ot allowing lazy loading if env var set
2013-08-08 20:18:08 +09:00
Cedric Bail
464c58a1c9
eina: another fix for windows build.
2013-08-08 17:17:58 +09:00
Cedric Bail
c4beec0127
eina: fix compilation of Eina_File on windows.
2013-08-08 17:05:14 +09:00
Cedric Bail
a07fab03e8
evas: CRIT when someone change object geometry during pixels get callback.
2013-08-08 09:47:45 +09:00
Cedric Bail
7c6b3b1d4a
edje: fix off-by-one when x or y where negative.
2013-08-08 09:47:45 +09:00
Stefan Schmidt
91426926c5
ecore_evas: Fix potential NULL dereference.
...
We don't want to execute any of the function below if t is NULL. Its not
only about strdup but alsa ecore_x_netwm_name_set which might dereference it.
CID 1039400
2013-08-07 15:38:35 +01:00
Stefan Schmidt
03c2d1c868
ecore: Check if eina_inarray_grow return NULL.
...
We will dereference one line below.
CID 1039337
2013-08-07 15:18:19 +01:00
Stefan Schmidt
d2f8eaf6c8
eio: Check return code of fcntl()
...
CID 1039686
2013-08-07 15:18:19 +01:00
Stefan Schmidt
824bf92dad
eeze: Remove unused var and related dead code.
...
Must be a leftover from older times. syspath never get set here.
CID 1039463
2013-08-07 15:18:19 +01:00
Stefan Schmidt
bdd3e7e8ca
eeze: Go to next loop iterate if test is NULL.
...
We would dereference it even if NULL one line later.
CID1039328
2013-08-07 15:18:18 +01:00
Sebastian Dransfeld
144ed4c10c
efreet: Fix buffer overrun, leave space for '\0'
...
CID: #1039304 , #1039305 and #1039306
2013-08-07 13:02:54 +02:00
Sebastian Dransfeld
e011d5e67c
efreet: be paranoid about '\0' termination
...
CID: #1039721
2013-08-07 13:02:54 +02:00
Sebastian Dransfeld
35a45eb062
efreet: formatting
2013-08-07 13:02:54 +02:00
Sebastian Dransfeld
2e4fb25922
efreet: clean up ugly internal_get function
...
CID: #1039186
2013-08-07 13:02:54 +02:00
Sebastian Dransfeld
75dd06bcb1
efreet: Remove dead code
...
CID: #1039942
2013-08-07 13:02:54 +02:00
Sebastian Dransfeld
ed524d49cc
efreet: Explicitly set num_pending to 0
...
CID: #1039185
2013-08-07 13:02:54 +02:00
Sebastian Dransfeld
9707fee051
efreet: Check return value of eet_list
...
CID: #1039327
2013-08-07 13:02:53 +02:00
Sebastian Dransfeld
8327903b99
efreet: fgetc returns int
...
CID: #1039720
2013-08-07 13:02:53 +02:00
Sebastian Dransfeld
a8d70f803c
efreet: Check return value of chmod
...
CID: #1039690
2013-08-07 13:02:53 +02:00
Sebastian Dransfeld
7d1703ea0d
efreet: Be paranoid about '\0' termination
...
CID: #1039722
2013-08-07 13:02:53 +02:00
Sebastian Dransfeld
f854efd041
efreet: Use mkstemp for tempfile
...
CID: #1039615
2013-08-07 13:02:53 +02:00
Sebastian Dransfeld
6a7f417cec
efreet: Check return value of chmod
...
CID: #1039716
2013-08-07 13:02:53 +02:00
Sebastian Dransfeld
73ad466cbc
efreet: TODO++
2013-08-07 13:02:53 +02:00
Tom Hacohen
4185694ecb
Synced libunibreak local copy with upstream.
2013-08-07 11:57:09 +01:00
Chris Michael
3cc3d0878a
Convert upper-case characters to lower-case characters on keydown
...
events.
NB: xkbcommon automatically converts the pressed key to Upper if Shift
is pressed. this is a problem as ecore key down events expect them to
be lower-case (not converted yet).
NB: Fixes Phab Ticket T232.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-07 10:45:11 +01:00
Mike Blumenkrantz
5e8e8aec7d
print error when ecore-x shm check fails
2013-08-07 08:36:46 +01:00
Cedric Bail
442dda08c4
edje: make min: source work correctly with GROUP part.
...
This close task T54.
2013-08-07 16:04:52 +09:00
Cedric Bail
93b0fbfe65
edje: add warning when not finding the exact match.
...
This will close T223.
2013-08-07 16:01:57 +09:00
Chris Michael
5e230dd97d
Add missing EINA_UNUSED to function parameters.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-06 11:26:26 +01:00
Chris Michael
82c980ef7b
Add functions for output done and output scale events.
...
NB: Apparently, setting these functions to NULL in the listener Does
Not Work anymore ! :( (used to work just fine).
NB: This makes EFL Apps work again inside Weston with latest from git.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-06 11:18:29 +01:00
Chris Michael
836370422b
Bump compositor interface version to 3.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-06 11:18:11 +01:00
Chris Michael
5be999e0f5
Get the 'fd' from the handler First (regardless of read or write) so
...
that it can be used in the below event callback.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-06 09:48:21 +01:00
Tom Hacohen
6583b83c73
Evas textblock: Use max ascent/descent at the edges of the textblock.
...
Thanks to Youngbok Shin for reporting the difference in behaviour between
textblock and text object.
2013-08-06 09:29:03 +01:00
Carsten Haitzler
bdb19cd974
eina-file - adapt to bsd version of MADV_REMOVE
2013-08-06 16:13:03 +09:00
Cedric Bail
f302c0e0ac
evas: fix build with debugging rendering trace.
2013-08-06 15:45:07 +09:00
Cedric Bail
468eb14635
evas: fix comment to actually compile if you use them.
2013-08-06 15:44:43 +09:00
Cedric Bail
c90179ce86
eina: fix build on FreeBSD.
2013-08-06 15:44:22 +09:00
Cedric Bail
ea3f82fa1e
efreet: let's pass memset parameter in the right order.
2013-08-06 09:17:46 +09:00
Chris Michael
ff9b4775e8
Fix memleak in data_thread_script of edje_cc_out
...
NB: If we are going to exit data_thread_script function due to malloc
failure or fread failure, then we should close the previously fdopen'd
file so that we do not leak 'f'.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 15:32:12 +01:00
Chris Michael
d384574095
If efreet_menu_parse returns an actual menu, let's free the memory
...
allocated to it before we return.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 14:24:46 +01:00
Chris Michael
8810f69914
Remove the directory from the font_first hash First, before calling
...
object_text_font_cache_dir_del as the latter function will actually
Free the fd.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 14:07:11 +01:00
Chris Michael
077aee9cef
Do not try to append a NULL async client.
...
NB: Above, _ethumb_client_async_free Could have been called, which
will free the async client. Add valid check for async before we append.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 14:03:13 +01:00
Chris Michael
80f2498909
efreet_menu_move_free will free "move" here so remove the menu from
...
the parent's list Before we free the menu.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 13:58:13 +01:00
Chris Michael
cc1a2d4b6b
_ecore_con_dns_free already frees the timer and whole dns structure,
...
so setting dns->timer = NULL here b0rks.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 13:52:06 +01:00
Chris Michael
0f925220e1
Fix potential double-free of so->answer.
...
NB: dns_so_submit calls dns_so_reset twice (once at start, once at end
on error). As so_reset will free so->answer the first time through,
add validity check of so->answer for the second iteration.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 13:48:23 +01:00
Chris Michael
b211a27d67
Init fd to zero (removes compiler warning).
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 13:16:44 +01:00
Chris Michael
b344ef2440
Remove Eet_Connection from hash Before we call eet_connection_close
...
(as that frees the connection).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 13:13:19 +01:00
Chris Michael
a97f3c0b9b
Fix eina_file_virtual_map_new function (/me glares at Frenchie).
...
- Spank Cedric !!!!!
NB: How about we actually fill in "map" after allocation ??
NB: Previously we would malloc "map" and immediately exit without
filling it in, without adding it to the hash....nothing. Just allocate
and get out. Bad Frenchie !!!
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 13:01:52 +01:00
Chris Michael
397e8afc1a
Avoid potential divide by zero in INF call.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 12:42:31 +01:00
Chris Michael
d9f8e6b525
Do not call _ecore_con_client_flush with a NULL client.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 12:39:19 +01:00
Chris Michael
da275a76b1
Check for Image_Entry being valid before calling evas_cache_image_drop.
...
NB: Image_Entry passed in to this function Could be NULL (hence the
previous if ie check above. Do not call evas_cache_image_drop on a
NULL Image_Entry as evas_cache_image_drop does not validity checking.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 12:32:00 +01:00
Chris Michael
24413bd7ee
Actually declare fd at the top of function.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 12:17:26 +01:00
Chris Michael
76766161d2
ecore_main_fd_handler_fd_get can return -1 so we need to check for a
...
valid fd before calling read().
Reuse returned fd variable in the callback to save extra function call
to ecore_main_fd_handler_fd_get (since we already acquired the fd
above).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 11:46:04 +01:00
Chris Michael
4c9c522337
Check for valid fd returned from ecore_main_fd_handler_fd_get before
...
potentially passing -1 to the read() function.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 11:40:02 +01:00
Chris Michael
65fc207951
Don't pass negative values to close:
...
ecore_main_fd_handler_fd_get can return -1, so check return value
before passing to close().
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 11:36:24 +01:00
Chris Michael
cc0bbacb89
open() can fail for various reasons, so check for valid 'fd' return
...
before calling fdopen.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 11:34:34 +01:00
Chris Michael
8270fc29f3
ecore_main_fd_handler_fd_get can return -1 so check fd validity before
...
calling read() with potentially -1.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 11:24:11 +01:00
Chris Michael
5444ee0681
ecore_main_fd_handler_fd_get Can return -1 so check fd validity before
...
calling close() on it.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 10:56:37 +01:00
Chris Michael
42496ac4ea
fopen can fail. check file is open before trying to write to it.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 10:41:16 +01:00
Chris Michael
62401c257a
strchr can return NULL, so check validity before tryint to pass NULL
...
to ecore_file_cp.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 10:37:15 +01:00
Chris Michael
8b93eaf4c8
_edje_real_part_recursive_get can return NULL so check validity before
...
calling _edje_child_remove (with potentially NULL as the real part).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 10:26:38 +01:00
Chris Michael
016e365424
Don't call fcntl functions if we do not HAVE_FCNTL support built in.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 10:14:46 +01:00
Cedric Bail
35e1ddc6f6
evas: limit resize to always be of the right size.
...
This should fix T157.
2013-08-05 17:46:37 +09:00
Cedric Bail
1927bcea91
edje: do not move object until all positionning information is known.
2013-08-05 17:46:37 +09:00
Sebastian Dransfeld
a76633b930
efreet: Fix allocated data size
...
Since we check for count < 10 and then add 1, we could get count == 11.
Also set array memory to 0 in one command.
2013-08-05 10:45:29 +02:00
Sebastian Dransfeld
92437d7204
efreet: Formatting
2013-08-05 10:45:29 +02:00
Chris Michael
585ad86480
Patch from Phoenix Kayo <kayo@illumium.org> to fix
...
ecore_x_selection_parser functions for mozurl.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-05 07:44:50 +01:00
Yury Usischev
bd6de4ba8c
Add neon for upscaling and map routines in evas.
2013-08-02 18:06:55 +09:00
Daniel Juyung Seo
a3165bff15
edje: added BLOCK_HANDLE description and vim syntax.
2013-08-02 13:27:54 +09:00
Cedric Bail
e60baa0061
evas: change mapping policy to be less agressive into loading file in memory.
...
Should fix T271.
2013-08-02 10:25:26 +09:00
Chris Michael
aa75297381
Add #ifdef ECORE_XRANDR around the edid functions.
...
NB: Cannot really happen for 1.8 (as --disable-ecore-x-randr has no
effect), but really these should have been ifdef'd from the start.
NB: IMO, Don't think a ChangeLog is really needed for this....
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-01 15:18:01 +01:00
Chris Michael
4d54c97864
Remove calls to ecore_wl_init and ecore_wl_shutdown.
...
NB: These calls are NOT needed here (they setup and tear down the
actual wayland display fd connections, and are not necessary in order
to use ecore_wl functions).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-01 12:50:41 +01:00
Chris Michael
d163e5df1f
Check for valid windows hash before searching it.
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-08-01 12:50:41 +01:00
Mike Blumenkrantz
5d1dec17b3
ecore-evas-x no longer tries making x calls on deleted windows when trying to free its sync counter
2013-08-01 12:17:58 +01:00
Cedric Bail
9104fe7322
evas: let's not leak temporary list left over.
2013-08-01 19:39:58 +09:00