[gnome-documents] application: don't set overview window mode with --no-default-window
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application: don't set overview window mode with --no-default-window
- Date: Mon, 1 Apr 2013 21:10:34 +0000 (UTC)
commit 54c1891a413cebf6ed81ebc3424fb29dbb922647
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Apr 1 16:53:26 2013 -0400
application: don't set overview window mode with --no-default-window
We'll set it later anyway, and this can cause unwanted transitions if
spawning Documents directly in preview, e.g. when a search result is
selected.
src/application.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 27433f5..4e6b209 100644
--- a/src/application.js
+++ b/src/application.js
@@ -491,10 +491,11 @@ const Application = new Lang.Class({
vfunc_command_line: function(cmdline) {
let args = cmdline.get_arguments();
- if (args.indexOf('--no-default-window') == -1)
+ if (args.indexOf('--no-default-window') == -1) {
this._createWindow();
+ modeController.setWindowMode(WindowMode.WindowMode.OVERVIEW);
+ }
- modeController.setWindowMode(WindowMode.WindowMode.OVERVIEW);
this.activate();
return 0;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]