Commit Graph

162 Commits

Author SHA1 Message Date
Gustavo Lima Chaves da771758de Wrong return value here.
SVN revision: 50778
2010-08-03 18:36:42 +00:00
Gustavo Lima Chaves e378c6035d Fixing wrong memory allocations.
SVN revision: 50769
2010-08-03 16:45:37 +00:00
Cedric BAIL 74f7480e41 * edje: fix some issue during destruction of edje_part_description,
and move tweens to an array.


SVN revision: 50765
2010-08-03 12:58:31 +00:00
Christopher Michael a7049f1f16 Rename 'same named' macros.
NB - Please use different macro names in the future for stuff like this 
(ie: not the same macro name in each file) as it spits nasty compiler 
warnings when compiling w/ amalgamation.



SVN revision: 50748
2010-08-02 19:06:07 +00:00
Cedric BAIL 1ba6b50042 * edje: fix counting.
SVN revision: 50742
2010-08-02 12:41:28 +00:00
Mike Blumenkrantz 2174b972fc new can of grandma's LEEK B GON
SVN revision: 50707
2010-07-31 05:17:56 +00:00
Mike Blumenkrantz 31743ae6de comment out unused variables
SVN revision: 50705
2010-07-31 05:01:54 +00:00
Christopher Michael 55d0190185 Don't use the same macro name in each file, gives nasty compiler warnings when
using amalgamation.



SVN revision: 50696
2010-07-31 01:21:30 +00:00
Cedric BAIL c897468e7e * edje: more unitialized case handled.
SVN revision: 50685
2010-07-30 09:53:20 +00:00
Cedric BAIL 29893ac71c * edje: fix rename of a part.
SVN revision: 50684
2010-07-30 09:08:37 +00:00
Cedric BAIL 50eb17c966 * edje: fix counting.
SVN revision: 50681
2010-07-30 08:29:13 +00:00
Cedric BAIL e773bc9246 * edje: change memory layout that will become the new file format.
NOTE: I tried this change with all the apps and theme I had, but maybe
	i missed some bug. Please report any strange behaviour.


SVN revision: 50641
2010-07-29 12:02:36 +00:00
Cedric BAIL 793c66b5dc * edje: last move of properties in the right structure.
SVN revision: 50284
2010-07-16 16:00:26 +00:00
Cedric BAIL 04ffefa9e5 * edje: move image specific properties to their own structure.
SVN revision: 50282
2010-07-16 14:13:38 +00:00
Cedric BAIL 83bb52f7c9 * edje: attempt to reduce code size by using more macro.
SVN revision: 50281
2010-07-16 13:58:35 +00:00
Cedric BAIL 30d35eb1ba * edje: start to split structure content.
SVN revision: 50279
2010-07-16 11:37:58 +00:00
Lucas De Marchi 2a84379ba9 Remove unneeded code with notnull.cocci script
The notnull.cocci script from Coccinelle finds places where you check if a
variable is NULL, but it's known not to be NULL. The check can be safely
removed. For example, this code would be caught by notnull:

if (!var) return;
if (var && var->fld) { ... }

It's needless to check again if var is not NULL because if it's in fact NULL,
it would have returned on the previous "if". This commit removes all the
trivial places where this pattern happens. Another patch will be generated for
the more complex cases.


SVN revision: 50241
2010-07-14 02:05:47 +00:00
Cedric BAIL b49c2411bd * edje: when gradient meet dodo. Yes, they are gone !
SVN revision: 50223
2010-07-13 15:47:19 +00:00
Iván Briano b895f0c07f Re-convert to old format on Edje_Edit when saving
SVN revision: 50016
2010-07-03 22:50:58 +00:00
Cedric BAIL 4e30cb2411 * edje: move structure from Eina_List to array now that Eet support
them.


SVN revision: 49936
2010-06-29 13:48:03 +00:00
Cedric BAIL e17a4089df * edje: This is the first commit of a rewrite of edje file
internal representation.

	The objectiv is to simplify code, consume less CPU and memory
	without loosing feature. Please report any breakage when you
	see them. It will take a few weeks before we change the file
	layout, during that time the load time may increase.


SVN revision: 49922
2010-06-28 13:56:30 +00:00
Cedric BAIL 73ac5cdc95 * edje: remove warning due to API change in Ecore.
SVN revision: 49830
2010-06-24 16:16:50 +00:00
Iván Briano 47a7d86e5c Add scale set/get to Edje_Edit.
By: Iván Briano <ivan@profusion.mobi>



SVN revision: 49746
2010-06-18 22:08:05 +00:00
Iván Briano fe6fe835a5 Fixing verify and set problems in externals types
Edje Edit was writing the info in the struct before verify if the value
can be set. New the verify works and the old value is recover if verify
fails.

By: Fabiano Fidencio <fidencio@profusion.mobi>



SVN revision: 49745
2010-06-18 22:07:54 +00:00
Iván Briano 8a0aee6c5c Setters and getters functions to Api property of Parts and Programs
Now we can set and retrieve, name and descripition of the api
property, from Parts and Programs.

By: Thiago Ribeiro Masaki <masaki@profusion.mobi>



SVN revision: 49678
2010-06-15 01:51:46 +00:00
Fabiano Fidêncio 40563f8aef From: Fabiano Fidêncio <fidencio@profusion.mobi>
Changing return of Eina_Bool functions that were not EINA_TRUE or
EINA_FALSE in Edje.



SVN revision: 49469
2010-06-05 13:07:08 +00:00
Cedric BAIL 83e505b5c6 * edje: Add image set support.
Ease support of Freedesktop multiple size image.

	Sample:
	-------

	images {
		..
	       	set {
			name: "image_name_used";
  			image {
				image: "500x500.png" LOSSY 90;
     				size: 201 201 500 500;
  			}
  			image {
				image: "200x200.png" COMP;
     				size: 51 51 200 200;
  			}
  			image {
				image: "50x50.png" COMP;
     				size: 11 11 50 50;
  			}
  			image {
				image: "10x10.png" COMP;
     				size: 0 0 10 10;
  			}
		}
		..
	}



SVN revision: 49369
2010-06-01 13:31:07 +00:00
Tiago Rezende Campos Falcao 266ac4bd99 update mtime when save
SVN revision: 48432
2010-04-29 18:52:59 +00:00
Tiago Rezende Campos Falcao ea7c060805 Code Replication --
SVN revision: 48431
2010-04-29 18:52:55 +00:00
Iván Briano 2f9b52fb1c When changing source of a GROUP part, set/clean the swallowed_object, by Thiago Masaki
SVN revision: 48398
2010-04-28 18:40:05 +00:00
Iván Briano 53f05ae0e5 A bit more carefulness when deleting states.
SVN revision: 48352
2010-04-26 22:51:24 +00:00
Iván Briano 675bb06b45 Make program_del() a bit more straight forward while fixing the problems it had updating references.
SVN revision: 48350
2010-04-26 22:35:49 +00:00
Tiago Rezende Campos Falcao a68f8e5529 Edje_edit font_del
SVN revision: 48339
2010-04-26 18:19:49 +00:00
Tiago Rezende Campos Falcao f95de840fa Edje_edit font_add with alias
SVN revision: 48338
2010-04-26 18:19:46 +00:00
Tiago Rezende Campos Falcao 023d8d6c15 Edje_edit image_del
SVN revision: 48337
2010-04-26 18:19:43 +00:00
Tiago Rezende Campos Falcao 1c1eee2805 Edje_edit image_add review
SVN revision: 48336
2010-04-26 18:19:39 +00:00
Iván Briano 8b706a1786 Also use an edit object when generating the source.
SVN revision: 48231
2010-04-22 20:29:35 +00:00
Iván Briano 78ff22f2dc Fix infinite loop when trying to group_del and group_add when id is zero.
By Thiago Masaki


SVN revision: 48228
2010-04-22 19:09:30 +00:00
Iván Briano 812b9ef672 Un/Clip swallowed objects too when setting clipper.
SVN revision: 48225
2010-04-22 18:13:21 +00:00
Iván Briano f18163a403 Edje Edit: Now inherits the smart from Edje and has stuff of its own in there.
To use the Edje Edit API now you need to add the object to the canvas with edje_edit_object_add().
Normal edje functions will work as usual, but it's no longer possible to tamper with the standard objects internals.
Also, big reformat of Edje_Edit.h while fixing docs. Yes, monster commit.


SVN revision: 48220
2010-04-22 17:56:00 +00:00
Cedric BAIL 7df0e78a6f * edje: during removal the removed list is modified.
SVN revision: 48207
2010-04-21 16:36:55 +00:00
Iván Briano 661e7e8be2 Update references to groups when renaming or deleting one from the file.
Patch by Thiago Masaki


SVN revision: 48188
2010-04-20 22:12:15 +00:00
Iván Briano 1c63337989 Add after_del() function
SVN revision: 48177
2010-04-20 19:57:17 +00:00
Tiago Rezende Campos Falcao a3333361f5 Dont need recalc params in external description in part_recalc.
Others types, like TEXT/TEXTBLOCK/SWALLOW/GROUP (others?), are similar to Externals. And may can recalc some properties only in description_apply, not on every call to part_recalc.

Some generic boolean properties, like "visible", can be moved to description_appy too.

SVN revision: 48144
2010-04-19 20:37:35 +00:00
Tiago Rezende Campos Falcao abc78c3d9a Use external_params_set to update params
SVN revision: 48143
2010-04-19 20:37:32 +00:00
Tiago Rezende Campos Falcao 1cfae12558 Use eina.strbuf to generate the source code. Cedric suggestion
SVN revision: 47878
2010-04-09 16:05:17 +00:00
Tiago Rezende Campos Falcao e99f2e77cb Check source generation in save
SVN revision: 47842
2010-04-08 19:37:22 +00:00
Iván Briano 3c61844af1 Make the Edje Smart inheritable.
Pretty much moving some things around and extending the smart class
to allow overloading some common functions. Edje_Edit will make use
of this.


SVN revision: 47841
2010-04-08 19:21:54 +00:00
Iván Briano 1c53021214 Edje_Edit: Big Fat API Break.
All state functions now receive the value as a double, separate from
the state name.
Getting the list of states from the part still returns a list of strings
with everything together, but we'll change that soon too.


SVN revision: 47811
2010-04-07 17:04:49 +00:00
Tiago Rezende Campos Falcao 209a4ce236 Return FALSE when save fail
SVN revision: 47787
2010-04-06 18:18:53 +00:00