[gnome-documents/gnome-3-8] 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/gnome-3-8] application: don't set overview window mode with --no-default-window
- Date: Tue, 16 Apr 2013 01:24:41 +0000 (UTC)
commit 1c9373f27c57dfb6d2d761a71140917fd972fae3
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 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 4d15c75..229ba83 100644
--- a/src/application.js
+++ b/src/application.js
@@ -492,10 +492,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]