Re: [Vala] signal handling in gui thread



Nor Jaidi Tuah píše v So 30. 01. 2010 v 09:07 +0800:

[...]

So, I emulate gtkmm's Dispatcher by replacing this:

  a_signal.connect ((arg) => { things_to_do (); });

with:

  a_signal.connect ((arg) => { 
     Idle.add_full (Priority.HIGH, () => things_to_do (); });
  });

Seems to work fine. I began to wonder why the gtkmm's
Dispatcher makes contorted use of pipes.


Performance reasons, most likely.

hand
Nor Jaidi Tuah


Attachment: signature.asc
Description: Toto je digitálně podepsaná část zprávy



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