Re: [E-devel] Dumping Exebuf in favor of Everything?

2010-04-11 Thread Massimo Maiurana
I'd keep both of them and load both by default, so every user can try them and
choose what he/she prefer in that particular moment, i.e. one would choose
exebuf to just run a simple command and choose everything if wants to perform
a more complex task.
also, they should have different icons to remark they are different things.

while we're at it, is there any particular reason why the everything module is
excluded from localization? is there any objection if I enable it in 
POTFILES.in?

-- 

Massimo Maiurana  massimoatragusa.linux.it
http://massimo.solira.orgGPG keyID #7044D601

Creare l'uomo  fu un'idea bizzarra  e originale,
ma  aggiungere  la  pecora  fu  una  tautologia.
  [Mark Twain]



signature.asc
Description: OpenPGP digital signature
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Pixbuf

2010-04-11 Thread rui kou
HI

I want to load a image from the memory(a point got from xmmsv_get_bin), So,
is there a API just like
gdk_pixbuf_loader_writeGdkPixbufLoader.html#gdk-pixbuf-loader-write
??

Thanks
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Pixbuf

2010-04-11 Thread Vincent Torri

hey,

 I want to load a image from the memory(a point got from xmmsv_get_bin), So,
 is there a API just like
 gdk_pixbuf_loader_writeGdkPixbufLoader.html#gdk-pixbuf-loader-write

Without more info of what you want to do, here is what i would do:

Once you have an evas:

void *data;  /* your image data */
int width;   /* width of your image */
int height   /* height of your image */

Evas_Object *o;
void *o_data; /* data of the evas object */

o = evas_object_image_add(evas);
evas_object_image_size_set(o, width, height);
evas_object_image_fill_set(o, 0, 0, width, height);
o_data = evas_object_image_data_get(o, 1);
if (!o_data)
{
   /* manage the error */
}

memcpy (o_data, data, height * width * 4);
evas_object_image_data_set(o, o_data);
evas_object_image_data_update_add(o, 0, 0, width, height);
evas_object_resize(o, width, height);

You then have to show the evas object to make it visible on the canvas.

Vincent Torri

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Pixbuf

2010-04-11 Thread Vincent Torri


On Sun, 11 Apr 2010, rui kou wrote:

 HI

 I want to load a image from the memory(a point got from xmmsv_get_bin), So,
 is there a API just like
 gdk_pixbuf_loader_writeGdkPixbufLoader.html#gdk-pixbuf-loader-write
 ??

i'm curious : you want to do an EFL frontend to xmms2 ?

Vincent

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Dumping Exebuf in favor of Everything?

2010-04-11 Thread Albin Tonnerre
On Sat, 10 Apr 2010 18:43 -0300, Gustavo Sverzut Barbieri wrote :
 Hi all,
 
 I'd like to call a voting to dump Exebuf and use Everything by
 default. It is fancier, it is more powerful and i see no reason to not
 do it. exebuf can be then disabled or just removed from SVN, as well
 as its conf_exebuf.

Speaking of which… I just recompiled from SVN, and everything (which I have been
using as a replacement for exebuf for a long time) now uses modules. That's all
nice and awesome, but please do enable those modules by default. Updating e17
and not being able to do anything with everything (heh) anymore is just plain
annoying.

Cheers,
-- 
Albin Tonnerre

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] error of genlist

2010-04-11 Thread rui kou
Hi

I am using genlist, I have a double_label genlist in my Application:


e_music_playlist_append(Evas_Object *playlist_show, TrackProperties
 *properties, int list_id)

{

Listitem *listitem;


 itclass.item_style = double_label;

itclass.func.label_get = _gl_label_get;

itclass.func.icon_get  = _gl_icon_get;

itclass.func.state_get = _gl_state_get;

itclass.func.del   = _gl_del;



 listitem = E_MUSIC_NEW(Listitem, 1);

listitem-pro = properties;

listitem-item = elm_genlist_item_append(playlist_show, itclass,

listitem, NULL/* parent */, ELM_GENLIST_ITEM_NONE,
 _list_sel, (int *)list_id/* func data */ );


 /* it will do _gl_label_get two times, but wen we do _gl_label_get in the
 second time ,listitem may has been free! */

//  free( listitem );

}


so, I expected to got two times of call of  _gl_label_get:

char *

_gl_label_get(const void *data, Evas_Object *obj, const char *part)

{

const Listitem *tit = data;

char buf[PATH_MAX];

printf(BUF:%s\n, tit-pro-title);

if (!strcmp(part, elm.text))

{

snprintf(buf, sizeof(buf), %s, tit-pro-title);


 }

else if (!strcmp(part, elm.text.sub))

{

snprintf(buf, sizeof(buf), %s, tit-pro-artist);

}

return strdup(buf);

}


BUT, i have got four!

Breakpoint 1, _gl_label_get (data=0x824e9d0, obj=0x80bf588, part=0x82523c8
 elm.text) at e_music_playlist.c:23

23   if (!strcmp(part, elm.text))

(gdb) bt

#0  _gl_label_get (data=0x824e9d0, obj=0x80bf588, part=0x82523c8 elm.text)
 at e_music_playlist.c:23

#1  0x001893fb in _item_realize (it=0x824e9e0, in=value optimized out,
 calc=1) at elm_genlist.c:881

#2  0x00189bb1 in _item_block_recalc (itb=value optimized out, in=value
 optimized out, qadd=1, norender=0) at elm_genlist.c:1001

#3  0x0018a2a6 in _queue_proecess (wd=value optimized out, norender=value
 optimized out) at elm_genlist.c:1708

#4  0x0018a494 in _item_queue (wd=0x80b4188, it=value optimized out) at
 elm_genlist.c:1751

#5  0x0018a7d6 in elm_genlist_item_append (obj=0x80bf588, itc=0x805022c,
 data=0x824e9d0, parent=0x0, flags=ELM_GENLIST_ITEM_NONE,

func=0x804d640 _list_sel, func_data=0x0) at elm_genlist.c:1804

#6  0x0804d62b in e_music_playlist_append (playlist_show=0x80bf588,
 properties=0xb6e0, list_id=0) at e_music_playlist.c:90

#7  0x0804d23c in _update_track (value=0x80ffb50, user_data=0x0) at
 xmms2_callback.c:137

#8  0x0013cdc7 in xmmsc_result_run (res=0x813c9c0, msg=0x811c698) at
 ../src/clients/lib/xmmsclient/result.c:437

#9  0x00138788 in xmmsc_ipc_exec_msg (ipc=0x8052a20, msg=0x811c698) at
 ../src/clients/lib/xmmsclient/ipc.c:399

#10 0x00137b77 in xmmsc_ipc_io_in_callback (ipc=0x8052a20) at
 ../src/clients/lib/xmmsclient/ipc.c:80

#11 0x0013df47 in xmmsc_io_in_handle (c=0x8051080) at
 ../src/clients/lib/xmmsclient/xmmsclient.c:511

#12 0x0014f834 in on_fd_data (udata=0x8051080, handler=0x8052ab8) at
 ../src/clients/lib/xmmsclient-ecore/xmmsclient-ecore.c:35

#13 0x005834ad in _ecore_main_fd_handlers_call (once_only=0) at
 ecore_main.c:699

#14 _ecore_main_loop_iterate_internal (once_only=0) at ecore_main.c:884

#15 0x00583667 in ecore_main_loop_begin () at ecore_main.c:166

#16 0x00167917 in elm_run () at elm_main.c:1260

#17 0x0804a9a7 in elm_main (argc=1, argv=0xb984) at e_music.c:42

#18 0x0804aa8e in main (argc=1, argv=0xb984) at e_music.c:67

(gdb) continue

Continuing.

BUF:Lament for Lost Dreams (snippet)


 Breakpoint 1, _gl_label_get (data=0x824e9d0, obj=0x80bf588, part=0x8252400
 elm.text.sub) at e_music_playlist.c:23

23   if (!strcmp(part, elm.text))

(gdb) bt

#0  _gl_label_get (data=0x824e9d0, obj=0x80bf588, part=0x8252400
 elm.text.sub) at e_music_playlist.c:23

#1  0x001893fb in _item_realize (it=0x824e9e0, in=value optimized out,
 calc=1) at elm_genlist.c:881

#2  0x00189bb1 in _item_block_recalc (itb=value optimized out, in=value
 optimized out, qadd=1, norender=0) at elm_genlist.c:1001

#3  0x0018a2a6 in _queue_proecess (wd=value optimized out, norender=value
 optimized out) at elm_genlist.c:1708

#4  0x0018a494 in _item_queue (wd=0x80b4188, it=value optimized out) at
 elm_genlist.c:1751

#5  0x0018a7d6 in elm_genlist_item_append (obj=0x80bf588, itc=0x805022c,
 data=0x824e9d0, parent=0x0, flags=ELM_GENLIST_ITEM_NONE,

func=0x804d640 _list_sel, func_data=0x0) at elm_genlist.c:1804

#6  0x0804d62b in e_music_playlist_append (playlist_show=0x80bf588,
 properties=0xb6e0, list_id=0) at e_music_playlist.c:90

#7  0x0804d23c in _update_track (value=0x80ffb50, user_data=0x0) at
 xmms2_callback.c:137

#8  0x0013cdc7 in xmmsc_result_run (res=0x813c9c0, msg=0x811c698) at
 ../src/clients/lib/xmmsclient/result.c:437

#9  0x00138788 in xmmsc_ipc_exec_msg (ipc=0x8052a20, msg=0x811c698) at
 ../src/clients/lib/xmmsclient/ipc.c:399

#10 0x00137b77 in xmmsc_ipc_io_in_callback 

Re: [E-devel] Dumping Exebuf in favor of Everything?

2010-04-11 Thread hannes.janet...@gmail.com
On Sun, Apr 11, 2010 at 3:04 PM, Albin Tonnerre
albin.tonne...@gmail.com wrote:
 On Sat, 10 Apr 2010 18:43 -0300, Gustavo Sverzut Barbieri wrote :
 Hi all,

 I'd like to call a voting to dump Exebuf and use Everything by
 default. It is fancier, it is more powerful and i see no reason to not
 do it. exebuf can be then disabled or just removed from SVN, as well
 as its conf_exebuf.

 Speaking of which… I just recompiled from SVN, and everything (which I have 
 been
 using as a replacement for exebuf for a long time) now uses modules. That's 
 all
 nice and awesome, but please do enable those modules by default. Updating e17
 and not being able to do anything with everything (heh) anymore is just plain
 annoying.


The modules are enabled by default in standard profile. Dont know if
and how one should update old configs automatically.

Regards,
Hannes

 Cheers,
 --
 Albin Tonnerre

 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Dumping Exebuf in favor of Everything?

2010-04-11 Thread Albin Tonnerre
On Sun, 11 Apr 2010 16:19 +0200, hannes.janet...@gmail.com wrote :
 On Sun, Apr 11, 2010 at 3:04 PM, Albin Tonnerre
 albin.tonne...@gmail.com wrote:
  On Sat, 10 Apr 2010 18:43 -0300, Gustavo Sverzut Barbieri wrote :
  Hi all,
 
  I'd like to call a voting to dump Exebuf and use Everything by
  default. It is fancier, it is more powerful and i see no reason to not
  do it. exebuf can be then disabled or just removed from SVN, as well
  as its conf_exebuf.
 
  Speaking of which… I just recompiled from SVN, and everything (which I have 
  been
  using as a replacement for exebuf for a long time) now uses modules. That's 
  all
  nice and awesome, but please do enable those modules by default. Updating 
  e17
  and not being able to do anything with everything (heh) anymore is just 
  plain
  annoying.
 
 
 The modules are enabled by default in standard profile. Dont know if
 and how one should update old configs automatically.

I know it's possible to add new default values on upgrades, but I don't whether
that's also true for modules. Raster: is there any way to make a module
automatically loaded when upgrading to a new version ?

Regards,
-- 
Albin Tonnerre

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] Dumping Exebuf in favor of Everything?

2010-04-11 Thread Gustavo Sverzut Barbieri
On Sat, Apr 10, 2010 at 11:38 PM, Massimo Maiurana maiur...@gmail.com wrote:
 I'd keep both of them and load both by default, so every user can try them and
 choose what he/she prefer in that particular moment, i.e. one would choose
 exebuf to just run a simple command and choose everything if wants to perform
 a more complex task.
 also, they should have different icons to remark they are different things.

This is highly pointless. They do the same thing, there is no point in
enabling one. Nobody in earth should think about will I launch
something with A, B or C, this is just bad usability.


 while we're at it, is there any particular reason why the everything module is
 excluded from localization? is there any objection if I enable it in 
 POTFILES.in?

of course not, go for it.


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

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel