Commit Graph

136 Commits

Author SHA1 Message Date
Cedric BAIL a1ae5b21ce edje: don't leak memory on edje block error during signal emit.
SVN revision: 75815
2012-08-29 07:18:52 +00:00
Tom Hacohen b0a19e7d4a Edje textblock: Fixed an issue with textblock fit.
Thanks to Brian Wang for reporting this.

SVN revision: 75730
2012-08-27 08:59:11 +00:00
Cedric BAIL c5fe5abff2 edje: properly destroy color_class and text_class on an Edje_Object.
SVN revision: 75647
2012-08-24 09:22:21 +00:00
Cedric BAIL ecc8b76db5 edje: add Guilherme Silveira to AUTHORS and ChangeLog.
SVN revision: 75485
2012-08-21 03:11:33 +00:00
ChunEon Park b11b7c3ac4 edje - fixe the uv mapping correctly in case of image swallowed case
SVN revision: 75241
2012-08-14 08:04:06 +00:00
Cedric BAIL 40bfd3933f edje: improve speed of color class lookup by using an Eina_Hash.
SVN revision: 75034
2012-08-09 08:27:04 +00:00
Cedric BAIL 07742ef737 edje: fix memory leak when alias are present.
SVN revision: 74960
2012-08-07 06:20:35 +00:00
Cedric BAIL f31da4c907 edje: call edje_object_message_signal_process also on GROUP part Edje object.
SVN revision: 74916
2012-08-06 09:22:42 +00:00
Cedric BAIL 6f73a22a03 edje: Reduce potential reentrant issue when using edje_object_signal_emit.
SVN revision: 74539
2012-07-28 16:33:37 +00:00
Carsten Haitzler 29452cf797 fix entry shift selection extend with mouse.
SVN revision: 74338
2012-07-24 03:52:14 +00:00
Jerome Pinot 365d29d02f edje: Fix multisense shutdown and shut up ecore thread shutdown.
Patch from cedric during the korean e17 meeting. Thanks!


SVN revision: 73841
2012-07-14 06:58:42 +00:00
Cedric BAIL 379566ece7 edje: stop compilation when clipping to a non RECT part.
SVN revision: 73801
2012-07-13 09:15:17 +00:00
Cedric BAIL 8f75f66c44 edje: warn at compile time about forgotten image.
NOTE: You need to enable at least Eina_Log warning level
to see them.


SVN revision: 73784
2012-07-13 02:50:58 +00:00
Tom Hacohen c62f3a2bb5 Edje text classes: Fixed issues with textblock and some inconsistency.
SVN revision: 73601
2012-07-12 07:08:05 +00:00
Tom Hacohen a367917778 Edje textblock: Fixed bug with applying text class size.
Happens when text size is updated, but font is not.

SVN revision: 73600
2012-07-12 07:08:00 +00:00
Leandro Pereira 7ee848bc33 edje: Make state index optional
This shouldn't break stuff, just make things easier.  Think of all that lost
time " 0.0".  Not anymore.  Not even in Embryo scripts.  Indexes should only
be provided when you need them (which is quite rare).

Note that if you use ``set_state("new state")'' in your Embryo scripts, the
produced .edj files will be incompatible with older versions of Edje.  This
backwards incompatibility only applies to Embryo scripts; edje_cc will
generate a ``0.0'' value if the index is omitted from state declarations and
programs.

Sachiel said this patch was OK; our benevolent release manager acked as
well. Blame them if this breaks stuff.

SVN revision: 73424
2012-07-06 18:34:50 +00:00
Tom Hacohen 162c54fc88 Edje entry: Fixed anchor update with user insert.
SVN revision: 73211
2012-07-03 08:52:17 +00:00
Cedric BAIL b5c65a71d2 edje: implement per part limit.
SVN revision: 72767
2012-06-24 13:23:37 +00:00
Michael BOUCHAUD 1f2939fef0 edje: improve use of aliases
SVN revision: 72732
2012-06-23 18:39:08 +00:00
Carsten Haitzler 4ec9749ead use bin prefix for embryo_cc in edje_cc.
SVN revision: 72580
2012-06-21 08:55:38 +00:00
Cedric BAIL 5c7cfbacb5 edje: add accessibility flags and API.
Patch by Kim Shinwoo <kimcinoo.efl@gmail.com>


SVN revision: 72521
2012-06-20 07:29:47 +00:00
Jihoon Kim cb2c9a94a1 write NEWS, Changelog about r71761
SVN revision: 72153
2012-06-15 00:43:52 +00:00
PRINCE KUMAR DUBEY e3c44bee13 From: PRINCE KUMAR DUBEY <prince.dubey@samsung.com>
Subject: [E-devel] [Patch] [Edje] Fix for seg fault during edje
decompilation

Fix decompile of sound samples to use sound source file, not name
Fix decompile of sound samples not double-free
Fix alsa configure option to be alsa, not flac.



SVN revision: 72117
2012-06-14 09:45:48 +00:00
Cedric BAIL 0fe4412879 edje: rename VIRTUAL into SPACER and also fix Edje_Edit and inspector.
SVN revision: 72058
2012-06-13 03:21:31 +00:00
Cedric BAIL b0e087b6bf edje: morning speed of edje. Theme can now be a little bit lighter and faster.
NOTE: VIRTUAL part are almost like rectangle except they don't create any object
on the canvas. This part can't be visible, nor have any color, nor be used as a
clip, nor receive any event.


SVN revision: 71674
2012-06-04 02:57:15 +00:00
SHILPA ONKAR SINGH 510cada94b From: SHILPA ONKAR SINGH <shilpa.singh@samsung.com>
Subject: [E-devel] [Edje]: Bug Fix: Edje draggable jumps when external
events is used.

Please find attached bug fix patch for edje draggable jump issue when
external event area is used.

Bug: When an external event area is used for edje draggable and when
after mouse move if immediate mouse down
is done then the draggable jumps back to its original position. 

Analysis: In  _edje_mouse_down_signal_cb  When an external event area
is set  i.e., when rp->events_to is set.  
tmp.x value is set to 0, need_reset is set to 1 and also
_edje_recalc_do is called including emitting "drag" signal. this code
is 
unnecessary/buggy  and instead it causes the jump.
1. In mouse down only drag->down.x and drag->down.y needs to be set
which is being set below and tmp value need not be reset to 
0 as tmp value is calculated in mouse move based on drag->down.x and
drag->down.y values.
2. need_reset is already set in mouse up hence need not be set in
mouse down again.
3. edje_recalc_do is the function which actually causes the movement
of draggable based on tmp value hence need not be called in mouse down.
because of the above code race condition happens and as tmp value is
being set to 0 and need reset is also enabled the draggable jumps back
to where it
started.
4. "drag": is sent even before "drag,start" [ should not /need not be
sent in mouse down ]
All the above code is added only when external event area is set and
the above code is not even related to whether external event is set or
not.

Solution: When an external event area is set directly equating rp =
rp->events_to and sending mouse,down would be enough, as down.x and
down.y is set below
including sending drag,start. Recalc_do should be called only in mouse
move as its responsible for movement including setting tmp value.
need_reset is already set in mouse up. drag should not be sent from
mouse down.


Change Description:
Bug Fix: Edje Draggable jumps when mouse down is done immediately
after mouse move when an external 
event area is used.

demo edc pasted below to reproduce the issue.
Please find attached bug fix patch for edje draggable jump issue when external event area is used.

Bug: When an external event area is used for edje draggable and when after mouse move if immediate mouse down
is done then the draggable jumps back to its original position. 

Analysis: In  _edje_mouse_down_signal_cb  When an external event area is set  i.e., when rp->events_to is set.  
tmp.x value is set to 0, need_reset is set to 1 and also _edje_recalc_do is called including emitting "drag" signal. this code is 
unnecessary/buggy  and instead it causes the jump.
1. In mouse down only drag->down.x and drag->down.y needs to be set which is being set below and tmp value need not be reset to 
0 as tmp value is calculated in mouse move based on drag->down.x and drag->down.y values.
2. need_reset is already set in mouse up hence need not be set in mouse down again.
3. edje_recalc_do is the function which actually causes the movement of draggable based on tmp value hence need not be called in mouse down.
because of the above code race condition happens and as tmp value is being set to 0 and need reset is also enabled the draggable jumps back to where it
started.
4. "drag": is sent even before "drag,start" [ should not /need not be sent in mouse down ]
All the above code is added only when external event area is set and the above code is not even related to whether external event is set or not.

Solution: When an external event area is set directly equating rp = rp->events_to and sending mouse,down would be enough, as down.x and down.y is set below
including sending drag,start. Recalc_do should be called only in mouse move as its responsible for movement including setting tmp value. need_reset is already set in mouse up. drag should not be sent from mouse down.


Change Description:
Bug Fix: Edje Draggable jumps when mouse down is done immediately after mouse move when an external 
event area is used.

demo edc pasted below to reproduce the issue.
Please find attached bug fix patch for edje draggable jump issue when
external event area is used.

Bug: When an external event area is used for edje draggable and when
after mouse move if immediate mouse down
is done then the draggable jumps back to its original position. 

Analysis: In  _edje_mouse_down_signal_cb  When an external event area
is set  i.e., when rp->events_to is set.  
tmp.x value is set to 0, need_reset is set to 1 and also
_edje_recalc_do is called including emitting "drag" signal. this code
is 
unnecessary/buggy  and instead it causes the jump.
1. In mouse down only drag->down.x and drag->down.y needs to be set
which is being set below and tmp value need not be reset to 
0 as tmp value is calculated in mouse move based on drag->down.x and
drag->down.y values.
2. need_reset is already set in mouse up hence need not be set in
mouse down again.
3. edje_recalc_do is the function which actually causes the movement
of draggable based on tmp value hence need not be called in mouse down.
because of the above code race condition happens and as tmp value is
being set to 0 and need reset is also enabled the draggable jumps back
to where it
started.
4. "drag": is sent even before "drag,start" [ should not /need not be
sent in mouse down ]
All the above code is added only when external event area is set and
the above code is not even related to whether external event is set or
not.

Solution: When an external event area is set directly equating rp =
rp->events_to and sending mouse,down would be enough, as down.x and
down.y is set below
including sending drag,start. Recalc_do should be called only in mouse
move as its responsible for movement including setting tmp value.
need_reset is already set in mouse up. drag should not be sent from
mouse down.


Change Description:
Bug Fix: Edje Draggable jumps when mouse down is done immediately
after mouse move when an external 
event area is used.

demo edc pasted below to reproduce the issue.

Please find attached bug fix patch for edje draggable jump issue when external event area is used.
  
  Bug: When an external event area is used for edje draggable and when after mouse move if immediate mouse down
is done then the draggable jumps back to its original position. 
  
  Analysis: In  _edje_mouse_down_signal_cb  When an external event area is set  i.e., when rp->events_to is set.  
  tmp.x value is set to 0, need_reset is set to 1 and also _edje_recalc_do is called including emitting "drag" signal. this code is 
unnecessary/buggy  and instead it causes the jump.
  1. In mouse down only drag->down.x and drag->down.y needs to be set which is being set below and tmp value need not be reset to 
0 as tmp value is calculated in mouse move based on drag->down.x and drag->down.y values.
  2. need_reset is already set in mouse up hence need not be set in mouse down again.
  3. edje_recalc_do is the function which actually causes the movement of draggable based on tmp value hence need not be called in mouse down.
  because of the above code race condition happens and as tmp value is being set to 0 and need reset is also enabled the draggable jumps back to where it
started.
  4. "drag": is sent even before "drag,start" [ should not /need not be sent in mouse down ]
All the above code is added only when external event area is set and the above code is not even related to whether external event is set or not.
  
  Solution: When an external event area is set directly equating rp = rp->events_to and sending mouse,down would be enough, as down.x and down.y is set below
including sending drag,start. Recalc_do should be called only in mouse move as its responsible for movement including setting tmp value. need_reset is already set in mouse up. drag should not be sent from mouse down.
  
  
  Change Description:
Bug Fix: Edje Draggable jumps when mouse down is done immediately after mouse move when an external 
event area is used.



SVN revision: 71277
2012-05-21 10:08:18 +00:00
Cedric BAIL 2aab151919 edje: reduce memcpy in edje_cc by using Eina_File.
SVN revision: 71242
2012-05-20 07:06:57 +00:00
Cedric BAIL 0f490ba1dc edje: fix text and table with fixed point and clamp image tween.
SVN revision: 71152
2012-05-16 10:37:44 +00:00
Carsten Haitzler efca59d04f optimize edje_cc - now betwene 3.5 x and 4x as fast. new options
(-fastcomp and -fastdecomp) -fastcomp makes for faster decompressing
AND faster compressing of edj files, -fastdecomp is a bit slower on
compression but also as fast as -fastcomp in decompression. note that
edje files built with these optiosn will not work on older edje
installations, thus they are options.



SVN revision: 71112
2012-05-15 12:29:22 +00:00
Cedric BAIL 75172d209d edje: preserve drag information to.
SVN revision: 70997
2012-05-14 11:18:45 +00:00
Rajeev Ranjan f146ce307a From: Rajeev Ranjan <rajeev.r@samsung.com>
Subject: [E-devel] [PATCH][EDJE] Patch to remove the alpha from image
header while saving if the alpha is set to 1 but the image is fully
opaque

Attached to the mail is a patch to set the alpha information for an
image header to 0 with alpha present but all the texels being opaque.
Continuing to our discussion, as suggested by many people in the
community it has been implemented at edje_cc level.

Change description:
    While compiling the edc file, image data for image files is
scanned to find out whether the alpha value in header is set to 1 and
is not being used in the image.
  If this is the case, while writing to eet the alpha is set to 0 to
avoid blending for such images in the graphics pipeline when used by
evas.



SVN revision: 70954
2012-05-13 04:24:28 +00:00
Cedric BAIL ba073b67f9 edje: preserve user box and table items during call of edje_object_file_set.
NOTE: now you can change theme dynamically in elementary apps more reliably.
This doesn't handle the case where the swallow was done in a parent object and
the reswallow should happen in a another group. I don't how to fix that use
case.
don't see yet how to handle that


SVN revision: 70901
2012-05-10 05:37:38 +00:00
Cedric BAIL b786fe1ced edje: automatically emit ['edje,change,file', 'edje'] when the file change on disk.
For the moment only edje_player use it. This means that when used with
edje_watch, you don't need any more to type any kind of command line
when you are testing value in your theme. As a side effect, this means
that their is a real use case to make edje_cc faster !



SVN revision: 70890
2012-05-09 09:16:52 +00:00
Cedric BAIL 8f61823f67 edje: check that the file on disk didn't change when we try to reopen it.
SVN revision: 70883
2012-05-09 07:30:59 +00:00
Cedric BAIL cc3caf6172 edje: prevent segv when edje_object_signal_emit get nested and edje_object_signal_callback_{add,del} are called.
SVN revision: 70880
2012-05-09 07:09:59 +00:00
Cedric BAIL dd9c491c5b edje: add edje_watch.
edje_watch call edje_cc and monitor all the source file (edc, font
image, sound). If any of them change, it call edje_cc, update its
watching list and so on. edje_watch as the same command line as
edje_cc.
   Still a little bit rought, but it's the beginning of an interesting
experiment.


SVN revision: 70872
2012-05-08 10:35:57 +00:00
Cedric BAIL e4dbe385bb edje: doing less is actually better.
SVN revision: 70608
2012-05-02 06:55:15 +00:00
Cedric BAIL 71090cd4fd eina,evas,edje,elementary: add missing files from tarballs.
Patch by Jérôme Pinot <ngc891@gmail.com>


SVN revision: 70543
2012-04-30 01:55:06 +00:00
Cedric BAIL 8053f61f86 efl: add release point in ChangeLog files.
SVN revision: 70494
2012-04-26 08:07:22 +00:00
Carsten Haitzler 644855da4f sucky - but have to add this api to fix bug in elm.
SVN revision: 70360
2012-04-20 12:37:42 +00:00
Carsten Haitzler ad14b287bc add version define to epp.
SVN revision: 70205
2012-04-16 05:39:21 +00:00
Jihoon Kim e95b611cf2 Fix number isn't inserted when NUMLOCK is locked and KEYPAD is pressed
SVN revision: 69784
2012-03-30 06:34:45 +00:00
Cedric BAIL 6b3d9da609 edje: add automatic hints update to edje object and min: SOURCE to GROUP part.
NOTE: turning this feature on is costly. Do that only when you require it, really !


SVN revision: 69254
2012-03-12 15:28:58 +00:00
Cedric BAIL a657ed2678 edje: correctly propagate scale factor to GROUP.
SVN revision: 69189
2012-03-11 10:43:08 +00:00
Cedric BAIL 7c4d6fbec8 edje: fix rotation with fixed point.
SVN revision: 69011
2012-03-07 18:21:28 +00:00
Cedric BAIL 8217a140a0 edje: correctly propagate preload signal with GROUP.
SVN revision: 69004
2012-03-07 16:52:35 +00:00
Tom Hacohen ebc6c8d071 Edje entry: Replaced style_user_set/get with push/pop/peek.
SVN revision: 68955
2012-03-07 14:03:43 +00:00
Mikael SANS 579e75ff1e edje/entry: add double click(selects word) and triple click(selects line)
SVN revision: 68847
2012-03-06 19:59:51 +00:00
Tom Hacohen 97c02b6656 Edje entry: added edje_object_part_text_user_insert.
SVN revision: 68556
2012-02-29 15:57:53 +00:00
Jihoon Kim 8c9ee103cb Add edje_object_part_text_imf_context_get API.
This API can be used to get the input method context in entry.


SVN revision: 68385
2012-02-24 06:51:04 +00:00