changeset 18839:ed50c9745b1d

Use appropriate text-flags depending on the message flags.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 08 Aug 2007 00:36:35 +0000
parents 1744f915edb2
children 75a6fdc7f622
files finch/libgnt/pygnt/dbus-gnt
diffstat 1 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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")