Beispiel #1
0
void products_list_reset(void)
{
   Elm_Object_Item *eoi;

   ecore_thread_main_loop_begin();
   if ((eoi = elm_list_selected_item_get(ui.products.list)))
     elm_list_item_selected_set(eoi, EINA_FALSE);
   ecore_thread_main_loop_end();
}
Beispiel #2
0
// BEGIN - code running in my custom win32 thread instance
//
static DWORD WINAPI
my_thread_run(LPVOID arg)
{
   double t = 0.0;

   for (;;)
     {
        ecore_thread_main_loop_begin(); // begin critical
          { // indented for illustration of "critical" block
             Evas_Coord x, y;

             x = 200 + (200 * sin(t));
             y = 200 + (200 * cos(t));
             evas_object_move(rect, x - 50, y - 50);
          }
        ecore_thread_main_loop_end(); // end critical
        usleep(1000);
        t += 0.02;
     }
   return 0;
}
Beispiel #3
0
void _products_list_clear()
{
   ecore_thread_main_loop_begin();
   elm_list_clear(ui.products.list);
   ecore_thread_main_loop_end();
}