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 (); });


  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.

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]