The feature in Postler is partially done, it doesn't show an icon but only text, I need to find out why that doesn't work.
Remaining issue in Dexter: if I keep the contact dialogue open and forget to close it and then go back to Postler, and it tries to call EditContact again, nothing happens. The callback is apparently blocked by dialog.run ().
I think instead of run() it needs to set a variable and manually make the dialogue modal, and present it otherwise, so DBus callbacks aren't blocked. I'll express the idea in pythonish code:
Alright, so the "" problem is solved.
The feature in Postler is partially done, it doesn't show an icon but only text, I need to find out why that doesn't work.
Remaining issue in Dexter: if I keep the contact dialogue open and forget to close it and then go back to Postler, and it tries to call EditContact again, nothing happens. The callback is apparently blocked by dialog.run ().
I think instead of run() it needs to set a variable and manually make the dialogue modal, and present it otherwise, so DBus callbacks aren't blocked. I'll express the idea in pythonish code:
dialog = None set_modal (true)
if dialog == None:
dialog = gtk.Dialog ()
# bla
dialog.
dialog.connect ("destroy", dialog_destroyed)
dialog.show ()
else:
dialog.present ()
def dialog_destroyed:
dialog = None