Siddharth Chandra spake unto us the following wisdom: > Since Libpurple is a thread unsafe library, I wanted to know, how I can send > UI requests like "send IM" and "status update" etc. without creating a new > thread. I have gone through pidgin and finch code and have noticed that they > register gtk and gnt callbacks to do so. I am not using any of these, so how > can I get the same functionality?
I think you need to clarify your question. Sending an IM is not a UI request, for example. If you want to send an IM, simply call purple_conv_im_send (or whatever) at the point where you wish to send an IM. In the general case, you are not going to be able to get by without callbacks. The event-driven programming model simply requires them for handling complex, multi-stage operations. Ethan -- The laws that forbid the carrying of arms are laws [that have no remedy for evils]. They disarm only those who are neither inclined nor determined to commit crimes. -- Cesare Beccaria, "On Crimes and Punishments", 1764
signature.asc
Description: Digital signature
_______________________________________________ Support@pidgin.im mailing list Want to unsubscribe? Use this link: http://pidgin.im/cgi-bin/mailman/listinfo/support