[gnome-music] fix override of activate and startup
- From: Seif Lotfy <seiflotfy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] fix override of activate and startup
- Date: Mon, 1 Apr 2013 22:30:01 +0000 (UTC)
commit 37b741b299b6bb42632c4336414ad6c388b1dbd0
Author: Eslam Mostafa <cseslam gmail com>
Date: Mon Apr 1 17:31:53 2013 +0200
fix override of activate and startup
Signed-off-by: Seif Lotfy <seif lotfy com>
src/application.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 8b3823e..44cec6e 100644
--- a/src/application.js
+++ b/src/application.js
@@ -56,7 +56,7 @@ const Application = new Lang.Class({
//GLib.set_prgname('gnome-music');
GLib.set_application_name(_("Music"));
- // this.connect('activate', Lang.bind(this, this._onActivate));
+ //this.connect('activate', Lang.bind(this, this._onActivate));
//this.connect('startup', Lang.bind(this, this._onStartup));
},
@@ -152,10 +152,12 @@ const Application = new Lang.Class({
},*/
vfunc_activate: function() {
- this._window.show();
+ this._window.present();
},
vfunc_startup: function() {
+ this.parent();
+ Gtk.init(null);
this._buildApp();
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]