finch/libgnt/pygnt/dbus-gnt

changeset 19173
467db4a9cc44
parent 18826
a276583c694c
child 19200
ac7b9c360fd9
--- a/finch/libgnt/pygnt/dbus-gnt	Fri Jul 27 16:13:34 2007 +0000
+++ b/finch/libgnt/pygnt/dbus-gnt	Sat Jul 28 11:16:05 2007 +0000
@@ -24,6 +24,7 @@
     key = get_dict_key(conv)
     stuff = convwins[key]
     stuff[0].destroy()
+	# if a conv window is closed, then reopened, this thing crashes
     convwins[key] = None
 
 def wrote_msg(account, who, msg, conv, flags):
@@ -34,7 +35,8 @@
     tv.append_text_with_flags(who + ": ", 1)
     tv.append_text_with_flags(msg, 0)
     tv.scroll(0)
-    stuff[0].set_urgent()
+    if flags & 3:
+        stuff[0].set_urgent()
 
 bus = dbus.SessionBus()
 obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
@@ -91,6 +93,7 @@
     tv.clear()
     win.show()
     convwins[key] = [win, tv, entry]
+	# XXX: listen to "destroy" for the window, and reset the key
     return convwins[key]
 
 def show_buddylist():

mercurial