mirror of
https://github.com/jlengrand/Ivolution.git
synced 2026-03-10 08:21:18 +00:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user