comparison finch/libgnt/pygnt/dbus-gnt @ 19420:c1c260d41365

The conversation history is in a reversed list.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 25 Aug 2007 11:18:26 +0000
parents 6df41719037c
children
comparison
equal deleted inserted replaced
19419:6df41719037c 19420:c1c260d41365
108 convwins[key] = [win, tv, entry] 108 convwins[key] = [win, tv, entry]
109 win.connect("destroy", conv_window_destroyed, key) 109 win.connect("destroy", conv_window_destroyed, key)
110 110
111 if history: 111 if history:
112 msgs = purple.PurpleConversationGetMessageHistory(conv) 112 msgs = purple.PurpleConversationGetMessageHistory(conv)
113 msgs.reverse()
113 for msg in msgs: 114 for msg in msgs:
114 who = purple.PurpleConversationMessageGetSender(msg) 115 who = purple.PurpleConversationMessageGetSender(msg)
115 what = purple.PurpleConversationMessageGetMessage(msg) 116 what = purple.PurpleConversationMessageGetMessage(msg)
116 flags = purple.PurpleConversationMessageGetFlags(msg) 117 flags = purple.PurpleConversationMessageGetFlags(msg)
117 when = purple.PurpleConversationMessageGetTimestamp(msg) 118 when = purple.PurpleConversationMessageGetTimestamp(msg)