[maemo-developers] Problem for resfreshing Nokia770 screen - Program with Enlightenment

2006-09-27 Thread Seb Dev
Hello list,



I develop a multi-threaded program.
One thread receives some bitmaps (in BUFFER_FILE file) and send an ecore_event.







  imlib_save_image(TEMP_BUFFER_FILE);





 //Envoi signal pour rafraichir la fenetre evas  event = ecore_event_add(MY_EVENT_TYPE, toto, NULL, NULL);if(!event){exit(
0);}
This event is handled by the second thread in order to display them on a evas canvas (which is defined in the second thread).






//Handler creation
  MY_EVENT_TYPE = ecore_event_type_new();
  handler = ecore_event_handler_add(MY_EVENT_TYPE, callback_resfresh, NULL);
  if(!handler){exit(0);}





int callback_resfresh(void *data, int type, void
 *ev)
{
	refresh();
	return 1;
}

Here is below the function for refreshing the canvas (function defined in the second thread) :







void refresh(void)
{
   if(tmp){evas_object_del(tmp);}
   tmp = evas_object_image_add(evas);
   
   evas_image_cache_flush(evas);
   evas_image_cache_reload (evas);
   
   evas_object_image_file_set(tmp, TEMP_BUFFER_FILE, NULL);
   evas_object_move(tmp, 0, 0);
   evas_object_resize(tmp, win_w, win_h);
   evas_object_image_fill_set(tmp, 0, 0, win_w, win_h);
   evas_object_layer_set(tmp,50);

   evas_object_show(tmp);
   //evas_render(evas);
}



In a Linux PC environment, this program works well : the canvas is refreshed every time a bitmap is received.



But when this program is launched on a Nokia 770 with MAEMO 2.0, the
canvas is only refreshed when the screen is touched by the pencil. I
don't understand why the screen is refreshed only when I touch it.

I am running this program under X, and I disabled evas acceleration so that evas doesn't use the framebuffer.



If some of you have an idea to solve this problem, thanks a lot for your response.


Seb Dev

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] maemo-apps.org application catalog

2006-09-27 Thread Siarhei Siamashka

Hello All,

What do you think about current wiki based application catalog? In my
opinion, it is quite a large page already, slow to open and hard to
navigate. As I see it now, maemo-apps.org looks like it may become an
interesting resource for maemo community in the future. But it lacks
content, badly. Most of the applications submitted there were added by
'Frank' who is the admin there. Yesterday I edited
ApplicationCatalog2006 wiki page and added a notice with a suggestion
for application developers to submit their applications to maemo-apps
catalog as well, but this addition was reverted. I'm not suggesting to
drop current application catalog, it would be just stupid. But trying
some alternatives at the same time seems like a good idea to me.

Of course maemo-apps.org is a third party maintained resource with no
sources available. I would prefer something more open if it was
available (or at least maintained by Nokia).

Thoughts?
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers