# HG changeset patch # User Sadrul Habib Chowdhury # Date 1186533395 0 # Node ID ed50c9745b1da90a7abca5082a94a118fde1620d # Parent 1744f915edb24cb18295c0c8317558080c18160e Use appropriate text-flags depending on the message flags. diff -r 1744f915edb2 -r ed50c9745b1d finch/libgnt/pygnt/dbus-gnt --- a/finch/libgnt/pygnt/dbus-gnt Tue Aug 07 22:55:51 2007 +0000 +++ b/finch/libgnt/pygnt/dbus-gnt Wed Aug 08 00:36:35 2007 +0000 @@ -17,7 +17,7 @@ convwins = {} -def buddysignedon(): +def buddysignedon(buddy): pass def conv_closed(conv): @@ -32,11 +32,13 @@ tv = stuff[1] tv.append_text_with_flags("\n", 0) tv.append_text_with_flags(strftime("(%X) "), 8) - tv.append_text_with_flags(who + ": ", 1) - tv.append_text_with_flags(msg, 0) + if flags & 3: + tv.append_text_with_flags(who + ": ", 1) + tv.append_text_with_flags(msg, 0) + stuff[0].set_urgent() + else: + tv.append_text_with_flags(msg, 8) tv.scroll(0) - if flags & 3: - stuff[0].set_urgent() bus = dbus.SessionBus() obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")