[Pidgin] #1178: Protocol autoswitching should print out a notification in the conversation window
Pidgin
trac at pidgin.im
Tue Sep 2 18:51:28 EDT 2008
#1178: Protocol autoswitching should print out a notification in the conversation
window
-----------------------------+----------------------------------------------
Reporter: cdmarcus | Owner:
Type: enhancement | Status: new
Milestone: Patches welcome | Component: pidgin (gtk)
Version: 2.0 | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Comment(by tdfs):
Hi guys!
I've written a patch for this and I hope you'll like it. This is how it
works:
before printing an IM to window it calls a function to check if protocol
has changed and if yes, it notify the users. To detect if protocol has
changed, before printing an IM the protocol is stored in
PidginConversation->account_old (field added in gtkconv.h for the patch).
I used PidginConversation instead of PurpleConversation because there can
be more PurpleConversations in a windows/tab and PidginConversation let me
select last active PurpleConversation.
To prevent fake protocol changes that would come if using more tabs in the
same windows but with different protocols, the notify message is printed
only if conversation is active.
diff -u output of gtkconv.h and gtkconv.c will follow.
--
TheDarkFreeSoul
--
Ticket URL: <http://developer.pidgin.im/ticket/1178#comment:17>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list