[gnome-documents] application: init menus on GtkApplication startup
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application: init menus on GtkApplication startup
- Date: Wed, 21 Dec 2011 17:34:00 +0000 (UTC)
commit f52d465aef60a253c9f1a0a7aa7843ea6fa523a5
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Dec 21 18:31:49 2011 +0100
application: init menus on GtkApplication startup
Instead of _init, so we can access the various app controllers.
src/application.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 1c5d9ce..0a60d9b 100644
--- a/src/application.js
+++ b/src/application.js
@@ -76,8 +76,6 @@ Application.prototype = {
function() {
this._mainWindow.window.present();
}));
-
- this._initMenus();
},
_initMenus: function() {
@@ -152,6 +150,7 @@ Application.prototype = {
Global.selectionController = new Selections.SelectionController();
Global.modeController = new WindowMode.ModeController();
+ this._initMenus();
this._mainWindow = new MainWindow.MainWindow(this.application);
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]