Changes notification scheme :

- message is length 1 for system messages
- message is of length 2 for notifications (3 to indicate wh to update ? )

Applications now notifies thread to stop on gtk destroy

Changes git editor to vim
This commit is contained in:
2012-08-16 09:19:23 +02:00
parent bfc960e103
commit 0ff79f385d
2 changed files with 23 additions and 12 deletions

View File

@@ -131,12 +131,15 @@ class IvolutionWindow(Observer, Observable):
"""
self.my_logger.debug("Stop pressed")
self.console_logger.debug("Stop pressed")
self.notify(["STOP", 0.0]) # Asking the Facemovie to stop
self.notify(["STOP"]) # Asking the Facemovie to stop
self.process_running = False
def on_destroy(self, widget, data=None):
"""Called when the IvolutionWindow is closed."""
# Clean up code for saving application state should be added here.
self.notify(["STOP"]) # Asking the Facemovie to stop
self.process_running = False
Gtk.main_quit()
print "Gtk Exited"