adding a file with a fix and some FIXME comments

This commit is contained in:
Nikos Kouremenos 2005-06-21 08:58:45 +00:00
parent 33a83db622
commit 64539f9099
1 changed files with 13 additions and 3 deletions

View File

@ -1667,6 +1667,7 @@ class ManageEmoticonsWindow:
def on_add_remove_emoticons_window_delete_event(self, widget, event):
self.window.hide()
self.plugin.init_regexp() # update regexp [emoticons included]
return True # do NOT destroy the window
def on_close_button_clicked(self, widget):
@ -1675,6 +1676,7 @@ class ManageEmoticonsWindow:
def on_emoticons_treemodel_row_deleted(self, model, path):
iter = model.get_iter(path)
gajim.config.get_per('emoticons', model.get_value(iter, 0))
#FIXME: we just remove it from Treeview!!! plz remove me from emoticons dict
self.plugin.save_config()
def on_emoticons_treemodel_row_changed(self, model, path, iter):
@ -1790,6 +1792,14 @@ class ManageEmoticonsWindow:
pix = gtk.gdk.pixbuf_new_from_file(file)
img.set_from_pixbuf(pix)
model.set(iter, 2, img)
#FIXME: we don't add it to emoticons dict!
# please call in the key the upper()
# so:
# ':D' -> 'path_to_file'
# ':d' works (will be uppered)
# '<lol>' should becomes <LOL>
# bottom line: emots are case INsensitive so make sure you add them in
# emoticons dict (the keys part) as CAPS
def on_button_new_emoticon_clicked(self, widget, data=None):
model = self.emot_tree.get_model()