[gnome-music] override activate() and startup()



commit 7e1203aebdbd9b694cfe537d81d7dd6132a0cf70
Author: Eslam Mostafa <cseslam gmail com>
Date:   Mon Apr 1 17:27:48 2013 +0200

    override activate() and startup()
    
    Signed-off-by: Seif Lotfy <seif lotfy com>

 src/application.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 80c5700..2a11885 100644
--- a/src/application.js
+++ b/src/application.js
@@ -56,8 +56,8 @@ 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('startup', Lang.bind(this, this._onStartup));
+       // this.connect('activate', Lang.bind(this, this._onActivate));
+        //this.connect('startup', Lang.bind(this, this._onStartup));
     },
 
     _buildApp: function() {
@@ -151,11 +151,11 @@ const Application = new Lang.Class({
         this.notebook.show_all();
     },*/
 
-    _onActivate: function() {
+    vfunc_activate: function() {
         this._window.show();
     },
 
-    _onStartup: function() {
+    vfunc_startup: function() {
         this._buildApp();
     }
 });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]