[gnome-documents] application: use new GIO menus API



commit 2a27af8f0d463cd2d2f2996b3fdc8589e3db20a2
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Dec 21 17:13:18 2011 +0100

    application: use new GIO menus API

 src/application.js |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index a6f6401..05fe002 100644
--- a/src/application.js
+++ b/src/application.js
@@ -105,7 +105,7 @@ Application.prototype = {
 	this._menu.append(_('Quit'), "app.quit");
 
 	this.application.set_action_group(this._actionGroup);
-	this.application.set_menu(this._menu);
+	this.application.set_app_menu(this._menu);
     },
 
     _onStartup: function() {
@@ -148,8 +148,7 @@ Application.prototype = {
         Global.selectionController = new Selections.SelectionController();
         Global.modeController = new WindowMode.ModeController();
 
-        this._mainWindow = new MainWindow.MainWindow();
-        this.application.add_window(this._mainWindow.window);
+        this._mainWindow = new MainWindow.MainWindow(this.application);
     },
 
     _commandLine: function(app, commandLine) {



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