[gnome-documents] preview: coding style fixes
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] preview: coding style fixes
- Date: Wed, 6 Feb 2013 21:52:04 +0000 (UTC)
commit a6e1b8ff2d2d853fcccebd2e5c91df8b231d281f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Feb 6 16:33:56 2013 -0500
preview: coding style fixes
src/preview.js | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/preview.js b/src/preview.js
index a8ff646..f4246c8 100644
--- a/src/preview.js
+++ b/src/preview.js
@@ -164,9 +164,9 @@ const PreviewView = new Lang.Class({
let page_number = this._model.page;
let bookmark = new GdPrivate.Bookmark({ page_number: page_number });
+ let hasBookmark = (this._bookmarks.find_bookmark(bookmark) != null);
- let bookmark = this._bookmarks.find_bookmark(bookmark);
- Application.application.change_action_state('bookmark-page', GLib.Variant.new('b', (bookmark != null)));
+ Application.application.change_action_state('bookmark-page', GLib.Variant.new('b', (hasBookmark)));
},
_showPlaces: function() {
@@ -434,15 +434,15 @@ const PreviewNav = new Lang.Class({
pixel_size: 16 }),
valign: Gtk.Align.CENTER
});
- let button_area = this.widget.get_button_area();
- button_area.pack_start(button, false, false, 0);
-
- let button = new Gtk.ToggleButton({ action_name: 'app.bookmark-page',
- child: new Gtk.Image({ icon_name: 'bookmark-add-symbolic',
- pixel_size: 16 }),
- valign: Gtk.Align.CENTER
- });
- button_area.pack_start(button, false, false, 0);
+ let buttonArea = this.widget.get_button_area();
+ buttonArea.pack_start(button, false, false, 0);
+
+ button = new Gtk.ToggleButton({ action_name: 'app.bookmark-page',
+ child: new Gtk.Image({ icon_name: 'bookmark-add-symbolic',
+ pixel_size: 16 }),
+ valign: Gtk.Align.CENTER
+ });
+ buttonArea.pack_start(button, false, false, 0);
this.actor = new GtkClutter.Actor({ contents: this.widget,
visible: false,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]