[gnome-music/wip/merge: 223/343] correctly exit after closing the window
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 223/343] correctly exit after closing the window
- Date: Thu, 25 Jul 2013 11:31:33 +0000 (UTC)
commit 28216abdedbd55cfa5fe0c844f6dd061c6f0a0a3
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Wed Jul 17 15:56:52 2013 +0200
correctly exit after closing the window
gnomemusic/toolbar.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/toolbar.py b/gnomemusic/toolbar.py
index 4a0922a..febdb34 100644
--- a/gnomemusic/toolbar.py
+++ b/gnomemusic/toolbar.py
@@ -36,7 +36,11 @@ class Toolbar(GObject.GObject):
self._closeButton.connect('clicked', self._close_button_clicked)
def _close_button_clicked(self, btn):
+ import sys
self._closeButton.get_toplevel().close()
+ while Gtk.main_level():
+ Gtk.main_quit()
+ sys.exit()
def set_stack(self, stack):
self._stackSwitcher.set_stack(stack)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]