Trigger a fake event to do background action



Hi all.
I'm pretty new to GTK.
I'm writing a simple code and I load a XML file with the builder to create my GUI, then I'd like to do some background actions after loaded the builder and before the gtk_widget_show() and the gtk_main() calls.

Right now I put my code right before the two calls, but the fact is that in some part of this code I want to modify the GUI itself, but the gtk_main is not running yet, so I wonder if some strange things may happen... Actually, right now something is happening: this piece of code decide if two GtkEntry widgets are sensitive or not and I'm having a problem with one of them: the first one goes away if the code sets the sensitive property to false, the second doesn't and I don't understand why. The funny thing is that if I check for the sensitive property status at run-time I see that both the widgets have the property to false, but I see one of them.

So I thought that maybe my code could set some trigger to be executed after the gtk_main is called, but I don't have a clue on how to do that and neither if it's a good idea or if it will solve my problem...
--
Regards,
Manuel Ferrero
R&D department

Reer SpA        
Tel.  +39 011 2482215
Fax. +39 011 859867

L'utilizzo non autorizzato del presente messaggio e' vietato e potrebbe costituire reato.
Se il presente messaggio non e' a Lei indirizzato, il suo contenuto non deve essere considerato
come trasmesso o autorizzato dalla Reer SpA; in tale caso Le saremmo grati se, via e-mail,
ce ne comunicasse l'errata ricezione.

The unauthorized use of this e-mail is prohibited and could constitute an offence.
If you are not the intended recipient of this message its contents shall be understood as neither
given nor endorsed by Reer SpA. Please notify Reer SpA by e-mail immediately in that case.




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