plugin: hidden conversation
eion at robbmob.com
Wed Mar 1 19:19:11 EST 2017
Pidgin has the concept of a 'hidden conversation window' that it uses for
conversation that you've hidden (eg, you've marked a chat as persistent in
the buddy list, then closed the conversation window) - looking through
pidgin/gtkconv.c shows some other cases of when the conversation is added
to the hidden conversation window.
Unfortunately there's no public api that would let you move a conversation
to the hidden conversation window, but messing around with the
"/conversations/im/hide_new" setting may let you change where the
conversation ends up when the received-im-msg is fired when your particular
message is received.
Is your source code online anywhere? Sounds like an interesting plugin and
I'd love to take a look :)
On 2 March 2017 at 01:43, Markus Teich <teichm-eyxs at fs.tum.de> wrote:
> I am currently writing a plugin which needs to exchange metadata-messages
> between pairs of participants in a chat. I figured out how to hide those
> messages so they won't bother the user, but I was not able to find a way to
> prevent pidgin from spawning a new tab in the conversation window.
> Currently in the "chat-buddy-joined" handler I try to find an existing
> conversation with the respective user with
> `purple_find_conversation_with_account` and in case there is none yet, I
> it `with purple_conversation_new`. Then I use `purple_conv_im_send_with_
> using the PURPLE_MESSAGE_INVISIBLE flag to send the first
> metadata-message. Can
> I prevent popping up a convesation tab/window in the GTK frontend for the
> AND receiver?
> I'm using pidgin v2.11.0.
> Devel mailing list
> Devel at pidgin.im
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Devel