[gnome-documents] embed: don't return fullscreen preview toolbar in edit mode
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] embed: don't return fullscreen preview toolbar in edit mode
- Date: Mon, 4 Mar 2013 03:17:27 +0000 (UTC)
commit 40a9d42e23ec449692baa7f034bf5a9f341a7704
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Mar 3 22:16:15 2013 -0500
embed: don't return fullscreen preview toolbar in edit mode
https://bugzilla.gnome.org/show_bug.cgi?id=695085
src/embed.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 731a4f4..251f6bf 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -445,8 +445,10 @@ const Embed = new Lang.Class({
},
getMainToolbar: function() {
+ let windowMode = Application.modeController.getWindowMode();
let fullscreen = Application.modeController.getFullscreen();
- if (fullscreen)
+
+ if (fullscreen && (windowMode == WindowMode.WindowMode.PREVIEW))
return this._preview.getFullscreenToolbar();
else
return this._toolbar;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]