Commit Graph

2055 Commits

Author SHA1 Message Date
Carsten Haitzler faf062a939 add a -threads mode and make non-threaded compile the default... no
pending threads then. we can change this later for more testing.
trying to narrow down issues anyway.



SVN revision: 71378
2012-05-24 03:59:02 +00:00
Carsten Haitzler 9a3e561f69 add brackets.. to if...
SVN revision: 71344
2012-05-23 04:22:41 +00:00
Carsten Haitzler 2d425e48db found scrollbar bug in e17 theme... something to do with my making
part lookups faster (O(1)). disable new part lookup code until i've
figured it out.



SVN revision: 71341
2012-05-23 03:12:25 +00:00
Carsten Haitzler 1d11f7a879 dont eet_close on error/abort as it can cause segv's now due to threads.
SVN revision: 71309
2012-05-22 09:09:52 +00:00
Daniel Juyung Seo 1174b27e52 edje edje_cc_handlers.c: Fixed formatting while reading the code.
SVN revision: 71285
2012-05-21 13:23:11 +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
Hyoyoung Chang 29504633fc edje/multisense: add checking sample,tone name at playing. and some indent fixes
SVN revision: 71264
2012-05-21 04:47:45 +00:00
Cedric BAIL d83b283941 edje: fix little oopsie on theme change.
SVN revision: 71243
2012-05-20 07:16:23 +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 68d5592136 edje: remove useless printf.
SVN revision: 71241
2012-05-20 07:06:31 +00:00
Cedric BAIL 19cff8be60 edje: fix double opening of edje file.
NOTE: know issue, in elementary_config the size of the icon
change after a theme reload. I don't know what information is
lost between to reload. If someone can point at them, thanks.


SVN revision: 71235
2012-05-18 14:37:21 +00:00
Hyoyoung Chang a8bd686bfb edje: add sample and tone of multisense to edje inheritance
SVN revision: 71229
2012-05-18 08:33:40 +00:00
Carsten Haitzler cf46d0d388 work around the workaround so it works until ecore thread goop fixed.
SVN revision: 71155
2012-05-16 11:04:40 +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 047104fa55 work around race condition bug in ecore for now so edje_cc is reliable
again. CEDRIIIIIIIIIIIIIIIIIIIC!



SVN revision: 71144
2012-05-16 07:43:14 +00:00
Carsten Haitzler cbfa14edfb and clean up some of the work on parallelized edje_cc. code less ugly
now.



SVN revision: 71138
2012-05-16 02:15:45 +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 72061a67c7 edje: remove some printf.
SVN revision: 71088
2012-05-15 03:24:31 +00:00
Cedric BAIL 75172d209d edje: preserve drag information to.
SVN revision: 70997
2012-05-14 11:18:45 +00:00
ChunEon Park dec07d0754 edje - more detailed documentation
SVN revision: 70981
2012-05-14 01:12:02 +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 3c383ba958 edje: destroy the temporary file when leaving.
SVN revision: 70929
2012-05-11 10:50:47 +00:00
Vincent Torri 806d74d25f Edje: do not fail if eio is not available (edje_watch is compiled only if eio is available)
SVN revision: 70912
2012-05-10 17:49:53 +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 35d8d1fef8 edje: add more protection during edje_emit.
SVN revision: 70894
2012-05-09 10:44:02 +00:00
Cedric BAIL 58f626e3ea edje: this was supposed to get in this time. grr.
SVN revision: 70892
2012-05-09 10:10:51 +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 baffed6e81 edje: oops this shouldn't get in at this point.
SVN revision: 70886
2012-05-09 07:53:29 +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 09dba3e746 edje: handle case when & is not escaped.
SVN revision: 70401
2012-04-23 00:34:17 +00:00
Carsten Haitzler ed04f818c1 + @since
SVN revision: 70361
2012-04-20 12:49:27 +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
Daniel Juyung Seo ae800b358e edje edje_cc_out.c: Fixed formatting.
SVN revision: 70318
2012-04-19 08:41:47 +00:00
Carsten Haitzler 1bc29757ab small improvement - allow part names of "-" to mean "remove part name
itd and reset back to -1 - ie none". useful for to/to_x/to_y etc.



SVN revision: 70315
2012-04-19 03:35:29 +00:00
Carsten Haitzler ad14b287bc add version define to epp.
SVN revision: 70205
2012-04-16 05:39:21 +00:00
Guilherme Iscaro 78b1edfd29 Adding the examples to the makefile
Patch by: Guilherme Iscaro <iscaro@profusion.mobi>

SVN revision: 69975
2012-04-09 13:50:19 +00:00
Guilherme Iscaro 923d8ca03f Adding a new animation tutorial
Patch by: Guilherme Iscaro <iscaro@profusion.mobi>

SVN revision: 69974
2012-04-09 13:50:16 +00:00
Guilherme Iscaro 1772917ed5 Adding a new signal example
Patch by: Guilherme Iscaro <iscaro@profusion.mobi>

SVN revision: 69973
2012-04-09 13:50:11 +00:00
Jérôme Pinot 454e3c365e From: Jérôme Pinot <ngc891@gmail.com>
Subject: [E-devel] [patch] edje multisense example

Here is a try to have a working edje multisense example to fill up the
doc blank. edje-multisense.c is basically edje_example.c adapted.
I modified the edc, removing dead code, to have only a sample and a tone
example. Can be extended later.

Does the job except that it only plays sound one time per launch. Hope 
someone will know why and correct it...

Attached:
- the patch for existing .edc and build system
- the new edje-multisense.c file
- duck.wav a reworked public domain wav sample of a duck quack-quack



SVN revision: 69962
2012-04-09 07:37:02 +00:00
Guilherme Iscaro f344b5a56e Fixing doxygen warnings
Patch by: Guilherme Iscaro <iscaro@profusion.mobi>

SVN revision: 69938
2012-04-05 22:24:29 +00:00
Tom Hacohen a3cbdde4c0 Edje entry: Fixed edje_entry_user_insert.
SVN revision: 69917
2012-04-04 08:29:31 +00:00
Guilherme Iscaro 3c4e093d73 Adding a new swallow example
Patch by: Guilherme Iscaro <iscaro@profusion.mobi>

SVN revision: 69913
2012-04-03 18:27:09 +00:00
Guilherme Iscaro e93b120f65 Adding a new edje basic example
Patch by: Guilherme Iscaro <iscaro@profusion.mobi>

SVN revision: 69912
2012-04-03 18:27:05 +00:00
Vincent Torri 1ee506ccf7 Edje : Small fixes for edje doxygen doc
Patch by Jérôme Pinot


SVN revision: 69815
2012-03-31 07:53:47 +00:00
Cedric BAIL 4eac10ecdc edje: better debugging message when triggering infinite program loop.
NOTE: one day we should really go over all edje error message and
make them all meaningfull...



SVN revision: 69787
2012-03-30 09:22:12 +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