[E-devel] can't put a elementary scroller into EDC SWALLOW

2009-12-29 Thread zhangze
hi, all
i can't put a elementary scroller evas_object into a EDC SWALLOW
evas_object, why? is it a bug?


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] can't put a elementary scroller into EDC SWALLOW

2009-12-29 Thread Jonathan Atton
zhangze wrote:
 hi, all
 i can't put a elementary scroller evas_object into a EDC SWALLOW
 evas_object, why? is it a bug?


 --
 This SF.Net email is sponsored by the Verizon Developer Community
 Take advantage of Verizon's best-in-class app development support
 A streamlined, 14 day to market process makes app distribution fast and easy
 Join now and get one step closer to millions of Verizon customers
 http://p.sf.net/sfu/verizon-dev2dev 
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
   
Yes we can ! :)

what problem do you have ?

-- 
Regards


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: devilhorns trunk/e/src/bin

2009-12-29 Thread Sachiel
It compiles because for prototypes you only need the type,
not the variable name.

On Mon, Dec 28, 2009 at 3:01 PM, Enlightenment SVN
no-re...@enlightenment.org wrote:
 Log:
  Fix function prototype...no idea how this even compiled all this time.


 Author:       devilhorns
 Date:         2009-12-28 10:01:39 -0800 (Mon, 28 Dec 2009)
 New Revision: 44749

 Modified:
  trunk/e/src/bin/e_container.h

 Modified: trunk/e/src/bin/e_container.h
 ===
 --- trunk/e/src/bin/e_container.h       2009-12-28 16:52:27 UTC (rev 44748)
 +++ trunk/e/src/bin/e_container.h       2009-12-28 18:01:39 UTC (rev 44749)
 @@ -129,8 +129,8 @@
  EAPI int                e_container_borders_count(E_Container *con);
  EAPI void               e_container_border_add(E_Border *bd);
  EAPI void               e_container_border_remove(E_Border *bd);
 -EAPI void               e_container_window_raise(E_Container *con, 
 Ecore_X_Window, int layer);
 -EAPI void               e_container_window_lower(E_Container *con, 
 Ecore_X_Window, int layer);
 +EAPI void               e_container_window_raise(E_Container *con, 
 Ecore_X_Window win, int layer);
 +EAPI void               e_container_window_lower(E_Container *con, 
 Ecore_X_Window win, int layer);
  EAPI E_Border          *e_container_border_raise(E_Border *bd);
  EAPI E_Border          *e_container_border_lower(E_Border *bd);
  EAPI void               e_container_border_stack_above(E_Border *bd, 
 E_Border *above);


 --
 This SF.Net email is sponsored by the Verizon Developer Community
 Take advantage of Verizon's best-in-class app development support
 A streamlined, 14 day to market process makes app distribution fast and easy
 Join now and get one step closer to millions of Verizon customers
 http://p.sf.net/sfu/verizon-dev2dev
 ___
 enlightenment-svn mailing list
 enlightenment-...@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-svn


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] how to use

2009-12-29 Thread zhangze
hi, all
how to use the parameter const char *key in API
evas_object_image_file_set (Evas_Object *obj, const char *file, const
char *key)
and the parameter const char *group in API
elm_image_file_set ( Evas_Object *obj, const char *File, const char
*group)

I think these two things is the same, i know the char *file is eet file.
thanks. 


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] how to use

2009-12-29 Thread xupengxiang
hi, 
I just know you want to use elm_image_file_set

Finding it in SRC, you can find that 
if (((p = strrchr(file, '.')))  (!strcasecmp(p, .edj)))
 ret = _els_smart_icon_file_edje_set(wd-img, file, group);
   else
 ret = _els_smart_icon_file_key_set(wd-img, file, group);

I just know you want to use elm_image_file_set (**,*.edj,...)

 then, we goto _els_smart_icon_file_edje_set 
it just use edje_object_file_set

So ,you must make sure you edc file have a group with single parts IMAGE
you want to use. And then Use elm_image_file_set (**, *.edj, Group_name)
 


在 2009-12-30三的 10:34 +0800,zhangze写道:
 hi, all
 how to use the parameter const char *key in API
 evas_object_image_file_set (Evas_Object *obj, const char *file, const
 char *key)
 and the parameter const char *group in API
 elm_image_file_set ( Evas_Object *obj, const char *File, const char
 *group)
 
 I think these two things is the same, i know the char *file is eet file.
 thanks. 
 
 
 --
 This SF.Net email is sponsored by the Verizon Developer Community
 Take advantage of Verizon's best-in-class app development support
 A streamlined, 14 day to market process makes app distribution fast and easy
 Join now and get one step closer to millions of Verizon customers
 http://p.sf.net/sfu/verizon-dev2dev 
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel



--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: devilhorns trunk/edje/src/lib

2009-12-29 Thread Gustavo Sverzut Barbieri
On Wed, Dec 30, 2009 at 12:07 AM, Enlightenment SVN
no-re...@enlightenment.org wrote:
 Log:
  Fix printing of size_t value(s). (removes compiler warning).

They invented z modifier for that, see man 3 printf


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] how to use

2009-12-29 Thread Gustavo Sverzut Barbieri
On Wed, Dec 30, 2009 at 1:12 AM, xupengxiang xupengxiang2...@gmail.com wrote:
 hi,
        I just know you want to use elm_image_file_set

 Finding it in SRC, you can find that
        if (((p = strrchr(file, '.')))  (!strcasecmp(p, .edj)))
     ret = _els_smart_icon_file_edje_set(wd-img, file, group);
   else
     ret = _els_smart_icon_file_key_set(wd-img, file, group);

        I just know you want to use elm_image_file_set (**,*.edj,...)

  then, we goto _els_smart_icon_file_edje_set
        it just use edje_object_file_set

 So ,you must make sure you edc file have a group with single parts IMAGE
 you want to use. And then Use elm_image_file_set (**, *.edj, Group_name)



 在 2009-12-30三的 10:34 +0800,zhangze写道:
 hi, all
 how to use the parameter const char *key in API
 evas_object_image_file_set (Evas_Object *obj, const char *file, const
 char *key)
 and the parameter const char *group in API
 elm_image_file_set ( Evas_Object *obj, const char *File, const char
 *group)

 I think these two things is the same, i know the char *file is eet file.
 thanks.

Key is dependent on the loader, so far just eet have that support, but
we could write a zip loader, for example or any other archive that
could contain collections of images inside a single file.

For eet, that is the key inside the file, see eet -l file.eet

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: devilhorns trunk/edje/src/lib

2009-12-29 Thread Christopher Michael
On 12/29/2009 11:01 PM, Gustavo Sverzut Barbieri wrote:
 On Wed, Dec 30, 2009 at 12:07 AM, Enlightenment SVN
 no-re...@enlightenment.org  wrote:
 Log:
   Fix printing of size_t value(s). (removes compiler warning).

 They invented z modifier for that, see man 3 printf


Indeed, but didn't know off hand if edje was C99 compliant tho else I 
would have used zu...cause I was under the impression that the C99 is 
needed for zu to work

dh


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: devilhorns trunk/edje/src/lib

2009-12-29 Thread Vincent Torri



On Wed, 30 Dec 2009, Gustavo Sverzut Barbieri wrote:


On Wed, Dec 30, 2009 at 12:07 AM, Enlightenment SVN
no-re...@enlightenment.org wrote:

Log:
 Fix printing of size_t value(s). (removes compiler warning).


They invented z modifier for that, see man 3 printf


it does not exist on Windows:

http://msdn.microsoft.com/en-us/library/hf4y5e3w%28VS.71%29.aspx

Vincent--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: devilhorns trunk/edje/src/lib

2009-12-29 Thread Vincent Torri



On Wed, 30 Dec 2009, Vincent Torri wrote:




On Wed, 30 Dec 2009, Gustavo Sverzut Barbieri wrote:


On Wed, Dec 30, 2009 at 12:07 AM, Enlightenment SVN
no-re...@enlightenment.org wrote:

Log:
 Fix printing of size_t value(s). (removes compiler warning).


They invented z modifier for that, see man 3 printf


it is also a gnu extension:

http://swoolley.org/man.cgi/3/printf

glibc 2.1 adds length modifiers hh,j,t,z and conversion characters a,A.

Vincent--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: devilhorns trunk/edje/src/lib

2009-12-29 Thread Brett Nash
On Wed, 30 Dec 2009 07:51:01 +0100 (CET)
Vincent Torri vto...@univ-evry.fr wrote:

 
 
 On Wed, 30 Dec 2009, Vincent Torri wrote:
 
 
 
  On Wed, 30 Dec 2009, Gustavo Sverzut Barbieri wrote:
 
  On Wed, Dec 30, 2009 at 12:07 AM, Enlightenment SVN
  no-re...@enlightenment.org wrote:
  Log:
   Fix printing of size_t value(s). (removes compiler warning).
  
  They invented z modifier for that, see man 3 printf
 
 it is also a gnu extension:
 
 http://swoolley.org/man.cgi/3/printf
 
 glibc 2.1 adds length modifiers hh,j,t,z and conversion characters
 a,A.

%z is part of C99.
So for C99 it's %zi of %zd.

C99 also has the PRIx macros for printing all integer types safely.

Unfortunately there is no safe way of printing it in C89 (ie windows).
The best way is:
printf(... %ld..,(unsigned int)blah);

Regards,
nash

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: devilhorns trunk/edje/src/lib

2009-12-29 Thread Vincent Torri



On Wed, 30 Dec 2009, Brett Nash wrote:


On Wed, 30 Dec 2009 07:51:01 +0100 (CET)
Vincent Torri vto...@univ-evry.fr wrote:




On Wed, 30 Dec 2009, Vincent Torri wrote:




On Wed, 30 Dec 2009, Gustavo Sverzut Barbieri wrote:


On Wed, Dec 30, 2009 at 12:07 AM, Enlightenment SVN
no-re...@enlightenment.org wrote:

Log:
 Fix printing of size_t value(s). (removes compiler warning).


They invented z modifier for that, see man 3 printf


it is also a gnu extension:

http://swoolley.org/man.cgi/3/printf

glibc 2.1 adds length modifiers hh,j,t,z and conversion characters
a,A.


%z is part of C99.
So for C99 it's %zi of %zd.

C99 also has the PRIx macros for printing all integer types safely.

Unfortunately there is no safe way of printing it in C89 (ie windows).
The best way is:
printf(... %ld..,(unsigned int)blah);


note that, on Windows 64 bits, a long is of size 32 bits :)

Vincent--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel