Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/linkbutton.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2007-09-03 20:14:02 (GMT)
committer Simon Schampijer <simon@schampijer.de>2007-09-03 20:14:02 (GMT)
commitc28b01faa7d2cf454d23904e6cde253ee3455e97 (patch)
tree06e98e420e5fee130f4b4d82e199c67fe2a14e22 /linkbutton.py
parent11ac469846e1239f88012c451f355c82374258f9 (diff)
redesign when members leave and rejoin
added timestamp to be able to bring the links in the right order, you can not add alink twice unless you deleted it already, links are added to the tray on the right side
Diffstat (limited to 'linkbutton.py')
-rw-r--r--linkbutton.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/linkbutton.py b/linkbutton.py
index 8b2e478..aaa1d26 100644
--- a/linkbutton.py
+++ b/linkbutton.py
@@ -33,13 +33,13 @@ class LinkButton(TrayButton, gobject.GObject):
__gtype_name__ = 'LinkButton'
__gsignals__ = {
'remove_link': (gobject.SIGNAL_RUN_FIRST,
- gobject.TYPE_NONE, ([int]))
+ gobject.TYPE_NONE, ([str]))
}
- def __init__(self, url, buffer, color, title, owner, index):
+ def __init__(self, url, buffer, color, title, owner, index, hash):
TrayButton.__init__(self)
self.set_image(buffer, color.split(',')[1], color.split(',')[0])
- self.index = index
+ self.hash = hash
info = title +'\n'+ owner
self.setup_rollover_options(info)
@@ -98,4 +98,4 @@ class LinkButton(TrayButton, gobject.GObject):
menu_item.show()
def item_remove_cb(self, widget):
- self.emit('remove_link', self.index)
+ self.emit('remove_link', self.hash)