[gnome-documents] books: Don't show "add online sources" when empty
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] books: Don't show "add online sources" when empty
- Date: Wed, 17 Dec 2014 15:45:17 +0000 (UTC)
commit 8a35471a788a652fbc3a4eea881dbf66f504c09c
Author: Bastien Nocera <hadess hadess net>
Date: Tue Dec 16 16:08:12 2014 +0100
books: Don't show "add online sources" when empty
If there are no books on the system, don't show the "Add online
sources" link to gnome-control-center.
https://bugzilla.gnome.org/show_bug.cgi?id=740974
src/embed.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 2db07b6..441dd48 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -146,7 +146,8 @@ const EmptyResultsBox = new Lang.Class({
vexpand: true });
this._labelsGrid.add(titleLabel);
- if (Application.sourceManager.hasOnlineSources()) {
+ if (Application.sourceManager.hasOnlineSources() ||
+ Application.application.isBooks) {
titleLabel.valign = Gtk.Align.CENTER;
} else {
titleLabel.valign = Gtk.Align.START;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]