[gnome-music/wip/merge: 9/343] application condition if window exists
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/merge: 9/343] application condition if window exists
- Date: Thu, 25 Jul 2013 11:14:16 +0000 (UTC)
commit 991069d9b93445329059099870325a770ca7630f
Author: Eslam Mostafa <cseslam gmail com>
Date: Fri Jul 12 23:52:56 2013 +0200
application condition if window exists
gnome-music/application.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-music/application.py b/gnome-music/application.py
index 5eadcce..8854f2c 100644
--- a/gnome-music/application.py
+++ b/gnome-music/application.py
@@ -16,7 +16,8 @@ class Application(Gtk.Application):
Gtk.Application.startup(self)
def do_activate(self):
- self._window = Window(self)
+ if(!self._window):
+ self._window = Window(self)
self._window.present()
def Quit(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]