[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [E-devel] Module development issue



2006/11/26, Christopher Michael <cpmichael1@comcast.net>:

Oliver,

Try this :)


_isound_cb_check(inst);
if(!check_timer)
        check_timer = ecore_timer_add(1.0, _isound_cb_check, inst);



> static int _isound_cb_check(void *data) {
>       Instance *inst;
>       mpd_Song *song;
>       char buf[1024];
>
        inst = data;
>       mpd_status_update(mo);
>       song = mpd_playlist_get_current_song(mo);
>       snprintf(buf, sizeof(buf), "%s - %s" ,
>                       song->artist, song->title);
>       edje_object_part_text_set(inst->isound,"song",buf);
>
>     return 1;
> }

Cheers,
devilhorns



Thank you so much ;-)

Olivier