Commit 9fc73c99 authored by Bastien Nocera's avatar Bastien Nocera

Remove gnome-books

It's now available from its own module.
parent 7efd01c3
......@@ -13,15 +13,3 @@ flatpak-documents:
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
APP_ID: "org.gnome.Documents"
extends: .flatpak
flatpak-books:
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
variables:
BUNDLE: "gnome-books-dev.flatpak"
MANIFEST_PATH: "flatpak/org.gnome.Books.json"
#MESON_ARGS: "-Dprofile=development"
FLATPAK_MODULE: "gnome-books"
RUNTIME_REPO: "https://sdk.gnome.org/gnome-nightly.flatpakrepo"
APP_ID: "org.gnome.Books"
extends: .flatpak
\ No newline at end of file
This diff is collapsed.
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns:cc='http://creativecommons.org/ns#' xmlns:dc='http://purl.org/dc/elements/1.1/' sodipodi:docname='gnome-books-symbolic.svg' height='16' id='svg7384' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:osb='http://www.openswatchbook.org/uri/2009/osb' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:svg='http://www.w3.org/2000/svg' inkscape:version='0.48.5 r10040' version='1.1' width='16' xmlns='http://www.w3.org/2000/svg'>
<metadata id='metadata90'>
<rdf:RDF>
<cc:Work rdf:about=''>
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/>
<dc:title>Gnome Symbolic Icon Theme</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview inkscape:bbox-paths='true' bordercolor='#666666' borderopacity='1' inkscape:current-layer='layer9' inkscape:cx='-17.56216' inkscape:cy='-3.5457279' gridtolerance='10' inkscape:guide-bbox='true' guidetolerance='10' id='namedview88' inkscape:object-nodes='false' inkscape:object-paths='false' objecttolerance='10' pagecolor='#555753' inkscape:pageopacity='1' inkscape:pageshadow='2' showborder='false' showgrid='false' showguides='true' inkscape:snap-bbox='true' inkscape:snap-bbox-midpoints='false' inkscape:snap-global='true' inkscape:snap-grids='true' inkscape:snap-nodes='true' inkscape:snap-others='false' inkscape:snap-to-guides='true' inkscape:window-height='1375' inkscape:window-maximized='1' inkscape:window-width='2560' inkscape:window-x='0' inkscape:window-y='27' inkscape:zoom='1'>
<inkscape:grid empspacing='2' enabled='true' id='grid4866' originx='-261.99979px' originy='-341.99988px' snapvisiblegridlinesonly='true' spacingx='1px' spacingy='1px' type='xygrid' visible='true'/>
</sodipodi:namedview>
<title id='title9167'>Gnome Symbolic Icon Theme</title>
<defs id='defs7386'>
<linearGradient id='linearGradient7212' osb:paint='solid'>
<stop id='stop7214' offset='0' style='stop-color:#000000;stop-opacity:1;'/>
</linearGradient>
</defs>
<g inkscape:groupmode='layer' id='layer9' inkscape:label='apps' style='display:inline' transform='translate(-502.99999,124.99988)'>
<path inkscape:connector-curvature='0' d='m 503,-124 0,1 0,11 0,1 1,0 5,0 c 0.1754,0 0.52538,0.15166 0.8125,0.34375 0.28712,0.19209 0.46875,0.375 0.46875,0.375 l 0.71875,0.71875 0.71875,-0.75 c 0,0 0.8963,-0.6875 1.28125,-0.6875 l 5,0 1,0 0,-1 0,-11 0,-1 -1,0 -5,0 c -0.87652,0 -1.56017,0.34756 -2.03125,0.6875 -0.0301,-0.0207 -0.031,-0.0105 -0.0625,-0.0312 C 510.44557,-123.64746 509.82811,-124 509,-124 l -5,0 -1,0 z m 2,2 4,0 c 0.13821,0 0.51476,0.14746 0.8125,0.34375 0.29774,0.19629 0.5,0.375 0.5,0.375 l 0.71875,0.6875 0.6875,-0.71875 c 0,0 0.89975,-0.6875 1.28125,-0.6875 l 4,0 0,9 -4,0 c -0.87693,0 -1.56008,0.34735 -2.03125,0.6875 -0.0196,-0.0135 -0.011,-0.0177 -0.0312,-0.0312 C 510.47725,-112.65166 509.83512,-113 509,-113 l -4,0 0,-9 z' id='rect7352-28-4-8' style='font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#bebebe;fill:#bebebe;fill-opacity:1;stroke:none;stroke-width:2;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans'/>
</g>
</svg>
......@@ -26,7 +26,6 @@ resource_data = files(
'media/dnd-counter.svg',
'media/thumbnail-frame.png',
'ui/documents-app-menu.ui',
'ui/books-app-menu.ui',
'ui/help-overlay.ui',
'ui/help-overlay.ui',
'ui/organize-collection-dialog.ui',
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015 Red Hat, Inc. -->
<component type="desktop">
<id>org.gnome.Books.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>Books</name>
<summary>An e-book manager application for GNOME</summary>
<description>
<p>
A simple application to access and organize your e-books on
GNOME. It is meant to be a simple and elegant replacement for using a
file manager to deal with e-books.
</p>
<p>It lets you:</p>
<ul>
<li>View recent e-books</li>
<li>Search through e-books</li>
<li>View e-books (PDF and comics) fullscreen</li>
<li>Print e-books</li>
</ul>
</description>
<kudos>
<kudo>AppMenu</kudo>
<kudo>HiDpiIcon</kudo>
<kudo>ModernToolkit</kudo>
</kudos>
<url type="bugtracker">https://gitlab.gnome.org/GNOME/gnome-documents/issues</url>
<url type="donation">http://www.gnome.org/friends</url>
<url type="homepage">https://wiki.gnome.org/Apps/Books</url>
<url type="translate">https://wiki.gnome.org/TranslationProject</url>
<developer_name>The GNOME Project</developer_name>
<screenshots>
<screenshot type="default">
<image type="source">https://gitlab.gnome.org/GNOME/gnome-documents/raw/master/data/screenshots/gnome-books-1.png</image>
</screenshot>
<screenshot>
<image type="source">https://gitlab.gnome.org/GNOME/gnome-documents/raw/master/data/screenshots/gnome-books-2.png</image>
</screenshot>
<screenshot>
<image type="source">https://gitlab.gnome.org/GNOME/gnome-documents/raw/master/data/screenshots/gnome-books-3.png</image>
</screenshot>
</screenshots>
<update_contact>debarshir_at_gnome.org</update_contact>
<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
<content_attribute id="violence-realistic">none</content_attribute>
<content_attribute id="violence-bloodshed">none</content_attribute>
<content_attribute id="violence-sexual">none</content_attribute>
<content_attribute id="violence-desecration">none</content_attribute>
<content_attribute id="violence-slavery">none</content_attribute>
<content_attribute id="violence-worship">none</content_attribute>
<content_attribute id="drugs-alcohol">none</content_attribute>
<content_attribute id="drugs-narcotics">none</content_attribute>
<content_attribute id="drugs-tobacco">none</content_attribute>
<content_attribute id="sex-nudity">none</content_attribute>
<content_attribute id="sex-themes">none</content_attribute>
<content_attribute id="sex-homosexuality">none</content_attribute>
<content_attribute id="sex-prostitution">none</content_attribute>
<content_attribute id="sex-adultery">none</content_attribute>
<content_attribute id="sex-appearance">none</content_attribute>
<content_attribute id="language-profanity">none</content_attribute>
<content_attribute id="language-humor">none</content_attribute>
<content_attribute id="language-discrimination">none</content_attribute>
<content_attribute id="social-chat">none</content_attribute>
<content_attribute id="social-info">none</content_attribute>
<content_attribute id="social-audio">none</content_attribute>
<content_attribute id="social-location">none</content_attribute>
<content_attribute id="social-contacts">none</content_attribute>
<content_attribute id="money-purchasing">none</content_attribute>
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
</component>
org.gnome.Documents.data.gresource.xml
\ No newline at end of file
[Desktop Entry]
Name=Books
Comment=Access, manage and share books
Exec=gnome-books
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=org.gnome.Books
Terminal=false
Type=Application
StartupNotify=true
DBusActivatable=true
OnlyShowIn=GNOME;
Categories=GNOME;GTK;Utility;Core;
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=Books;Comics;ePub;PDF;
......@@ -2,7 +2,6 @@
<gresources>
<gresource prefix="/org/gnome/Documents">
<file>application.css</file>
<file preprocess="xml-stripblanks">ui/books-app-menu.ui</file>
<file preprocess="xml-stripblanks">ui/documents-app-menu.ui</file>
<file preprocess="xml-stripblanks">ui/organize-collection-dialog.ui</file>
<file preprocess="xml-stripblanks">ui/preview-context-menu.ui</file>
......@@ -16,7 +15,4 @@
<gresource prefix="/org/gnome/Documents/gtk">
<file alias="help-overlay.ui" preprocess="xml-stripblanks">ui/help-overlay.ui</file>
</gresource>
<gresource prefix="/org/gnome/Books/gtk">
<file alias="help-overlay.ui" preprocess="xml-stripblanks">ui/help-overlay.ui</file>
</gresource>
</gresources>
<schemalist gettext-domain="gnome-documents">
<schema id="org.gnome.books" path="/org/gnome/books/">
<key name="view-as" enum="org.gnome.Documents.GdMainViewType">
<default>'icon'</default>
<summary>View as</summary>
<description>View as type</description>
</key>
<key name="sort-by" enum="org.gnome.Documents.GdMainColumns">
<default>'mtime'</default>
<summary>Sort by</summary>
<description>Sort by type</description>
</key>
<key name="window-size" type="ai">
<default>[768, 600]</default>
<summary>Window size</summary>
<description>Window size (width and height).</description>
</key>
<key name="window-position" type="ai">
<default>[]</default>
<summary>Window position</summary>
<description>Window position (x and y).</description>
</key>
<key name="window-maximized" type="b">
<default>true</default>
<summary>Window maximized</summary>
<description>Window maximized state</description>
</key>
<key name="night-mode" type="b">
<default>false</default>
<summary>Night mode</summary>
<description>Whether the application is in night mode.</description>
</key>
</schema>
</schemalist>
<interface>
<menu id="app-menu">
<section>
<item>
<attribute name="action">app.night-mode</attribute>
<attribute name="label" translatable="yes">Night Mode</attribute>
</item>
</section>
<section>
<item>
<attribute name="action">win.show-help-overlay</attribute>
<attribute name="label" translatable="yes">Keyboard Shortcuts</attribute>
</item>
<item>
<attribute name="action">app.help</attribute>
<attribute name="label" translatable="yes">Help</attribute>
</item>
<item>
<attribute name="action">app.about</attribute>
<attribute name="label" translatable="yes">About Books</attribute>
</item>
</section>
</menu>
</interface>
{
"app-id": "org.gnome.Books",
"runtime": "org.gnome.Platform",
"runtime-version": "master",
"sdk": "org.gnome.Sdk",
"command": "gnome-books",
"tags": [ "nightly" ],
"desktop-file-name-prefix": "(Nightly) ",
"finish-args": [
/* X11 + XShm access */
"--share=ipc", "--socket=x11",
/* Wayland access */
"--socket=wayland",
/* Read-only access to users documents */
/* Books can be outside xdg-dirs */
"--filesystem=host:ro",
/* Needs to talk to the network: */
"--share=network",
/* Tracker access */
"--talk-name=org.freedesktop.Tracker1",
"--talk-name=org.freedesktop.Tracker1.Miner.Extract",
/* Needed for dconf to work */
"--filesystem=xdg-run/dconf", "--filesystem=~/.config/dconf:ro",
"--talk-name=ca.desrt.dconf", "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
],
"build-options" : {
"cflags": "-O2 -g",
"cxxflags": "-O2 -g",
"env": {
"V": "1"
}
},
"cleanup": [ "/include", "/lib/pkgconfig",
"/share/pkgconfig", "/share/aclocal",
"/man", "/share/man", "/share/gtk-doc",
"/share/vala",
"*.la", "*.a",
"/bin/gnome-documents" ],
"modules": [
{
"name": "librest",
"sources": [
{
"type": "archive",
"url": "https://download.gnome.org/sources/rest/0.8/rest-0.8.1.tar.xz",
"sha256": "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9"
}
]
},
{
"name": "gnome-online-accounts",
"config-opts": [ "--disable-telepathy", "--disable-documentation", "--disable-backend", "--disable-Werror" ],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/gnome-online-accounts.git"
}
]
},
{
"name": "gnome-desktop",
"buildsystem": "meson",
"config-opts": [ "-Ddebug-tools=disabled", "-Dudev=disabled" ],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/gnome-desktop.git"
}
]
},
{
"name": "liboauth",
"config-opts": [ "--enable-nss" ],
"sources": [
{
"type": "archive",
"url": "http://netix.dl.sourceforge.net/project/liboauth/liboauth-1.0.3.tar.gz",
"sha256": "0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f"
}
]
},
{
"name": "libgdata",
"config-opts": [ "--disable-always-build-tests", "--disable-Werror", "--disable-static" ],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/libgdata.git"
}
]
},
{
"name": "libzapojit",
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/libzapojit.git"
}
]
},
{
"name": "popplerdata",
"no-autogen": true,
"make-install-args": ["prefix=/app"],
"sources": [
{
"type": "archive",
"url": "https://poppler.freedesktop.org/poppler-data-0.4.9.tar.gz ",
"sha256": "1f9c7e7de9ecd0db6ab287349e31bf815ca108a5a175cf906a90163bdbe32012"
}
]
},
{
"name": "poppler",
"buildsystem": "cmake-ninja",
"config-opts": [
"-DCMAKE_INSTALL_LIBDIR=/app/lib",
"-DCMAKE_INSTALL_INCLUDEDIR=/app/include",
"-DENABLE_LIBOPENJPEG=none"
],
"cleanup": [
"/bin"
],
"sources": [
{
"type": "archive",
"url": "https://poppler.freedesktop.org/poppler-0.69.0.tar.xz",
"sha256": "637ff943f805f304ff1da77ba2e7f1cbd675f474941fd8ae1e0fc01a5b45a3f9"
}
]
},
{
"name": "gspell",
"cleanup": [
"/bin"
],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/gspell.git"
}
]
},
{
"name": "evince",
"cleanup": [ "/share/GConf", "/share/help" ],
"config-opts": [ "--disable-nautilus", "--disable-viewer",
"--disable-previewer", "--disable-dbus",
"--disable-browser-plugin", "--enable-introspection",
"--enable-comics" ],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/evince.git"
}
]
},
{
"name": "tracker",
"buildsystem": "meson",
"cleanup": [ "/bin", "/etc", "/lib/systemd", "/libexec", "/share/dbus-1/services" ],
"config-opts": [ "--default-library=shared", "-Dbash-completion=no", "-Ddocs=false" ],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/tracker.git"
}
]
},
{
"name": "tracker-miners",
"buildsystem": "meson",
"cleanup": [ "/bin", "/etc", "/lib/systemd", "/libexec" ],
"config-opts": [ "--default-library=shared",
"-Dminer_apps=false",
"-Dminer_rss=false",
"-Dextract=false",
"-Dgeneric_media_extractor=none",
"-Dwriteback=false",
"-Dminer_fs=true" ],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/tracker-miners.git"
}
]
},
{
"name": "libgepub",
"buildsystem": "meson",
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/libgepub.git"
}
]
},
{
"name": "gnome-epub-thumbnailer",
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/gnome-epub-thumbnailer.git"
}
]
},
{
"name": "gnome-books",
"buildsystem": "meson",
"config-opts": [ "-Denable-documentation=false" ],
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/gnome-documents.git"
}
]
}
]
}
......@@ -34,8 +34,7 @@
"/share/pkgconfig", "/share/aclocal",
"/man", "/share/man", "/share/gtk-doc",
"/share/vala",
"*.la", "*.a",
"/bin/gnome-books"],
"*.la", "*.a"],
"modules": [
{
"name": "librest",
......@@ -185,16 +184,6 @@
}
]
},
{
"name": "libgepub",
"buildsystem": "meson",
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/GNOME/libgepub.git"
}
]
},
{
"name": "gnome-documents",
"buildsystem": "meson",
......
<?xml version='1.0'?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<refentry id="gnome-books">
<refentryinfo>
<title>gnome-books</title>
<productname>GNOME</productname>
<authorgroup>
<author>
<contrib>Maintainer</contrib>
<firstname>Cosimo</firstname>
<surname>Cecchi</surname>
<email>cosimoc@gnome.org</email>
</author>
</authorgroup>
</refentryinfo>
<refmeta>
<refentrytitle>gnome-books</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="manual">User Commands</refmiscinfo>
</refmeta>
<refnamediv>
<refname>gnome-books</refname>
<refpurpose>An e-book manager application for GNOME</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>gnome-books</command>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para><command>gnome-books</command> is an e-book
manager application designed to work with GNOME 3. You
can view your local e-books, search through
them, print or mark them as favorites.</para>
</refsect1>
<refsect1>
<title>Bugs</title>
<para>The bug tracker can be reached by visiting the
website <ulink url="https://gitlab.gnome.org/GNOME/gnome-documents/issues">https://gitlab.gnome.org/GNOME/gnome-documents/issues</ulink>.
Before sending a bug report, please verify that you have
the latest version of gnome-books. Many bugs (major and
minor) are fixed at each release, and if yours is out of
date, the problem may already have been solved.</para>
</refsect1>
<refsect1>
<title>Additional Information</title>
<para>For further information, visit the website
<ulink url="https://wiki.gnome.org/Apps/Books">https://wiki.gnome.org/Apps/Books</ulink>.</para>
</refsect1>
</refentry>
......@@ -16,7 +16,6 @@ xsltproc_cmd = [
mans = [
'gnome-documents',
'gnome-books'
]
foreach man: mans
......
......@@ -15,7 +15,6 @@ documents_api_version = '1.0'
documents_gir_version = '1.0'
documents_apps = [
'org.gnome.Books',
'org.gnome.Documents'
]
......@@ -77,7 +76,6 @@ documents_deps = [
# we just check their existence for gir
dependency('libgdata')
dependency('libgepub-0.6')
dependency('goa-1.0')
dependency('zapojit-0.0')
......
......@@ -14,7 +14,6 @@ bindir = os.path.normpath(destdir + os.sep + sys.argv[2])
# FIXME: meson will not track the creation of these files
# https://github.com/mesonbuild/meson/blob/master/mesonbuild/scripts/uninstall.py#L39
apps = [
['org.gnome.Books', 'gnome-books'],
['org.gnome.Documents', 'gnome-documents']
]
......
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.
data/org.gnome.Books.appdata.xml.in
data/org.gnome.Books.desktop.in
data/org.gnome.books.gschema.xml
data/org.gnome.Documents.appdata.xml.in
data/org.gnome.Documents.desktop.in
data/org.gnome.documents.gschema.xml
data/ui/books-app-menu.ui
data/ui/documents-app-menu.ui
data/ui/help-overlay.ui
data/ui/organize-collection-dialog.ui
......@@ -19,7 +15,6 @@ src/application.js
src/documents.js
src/edit.js
src/embed.js
src/epubview.js
src/evinceview.js
src/lib/gd-nav-bar.c
src/lib/gd-pdf-loader.c
......
......@@ -99,22 +99,15 @@ var Application = new Lang.Class({
'miners-changed': {}
},
_init: function(isBooks) {
_init: function() {
this.minersRunning = [];
this._activationTimestamp = Gdk.CURRENT_TIME;
this._extractPriority = null;
this._searchProvider = null;
this.isBooks = isBooks;
let appid;
if (this.isBooks) {
GLib.set_application_name(_("Books"));
appid = 'org.gnome.Books';
} else {
GLib.set_application_name(_("Documents"));
appid = 'org.gnome.Documents';
}
GLib.set_application_name(_("Documents"));
appid = 'org.gnome.Documents';
// needed by data/ui/view-menu.ui
GObject.type_ensure(Gio.ThemedIcon);
......@@ -183,7 +176,7 @@ var Application = new Lang.Class({
},
_onActionAbout: function() {
this._mainWindow.showAbout(this.isBooks);
this._mainWindow.showAbout();
},
_onActionHelp: function() {
......@@ -349,11 +342,7 @@ var Application = new Lang.Class({
EvDoc.init();
application = this;
if (application.isBooks)
settings = new Gio.Settings({ schema_id: 'org.gnome.books' });
else
settings = new Gio.Settings({ schema_id: 'org.gnome.documents' });
settings = new Gio.Settings({ schema_id: 'org.gnome.documents' });
let gtkSettings = Gtk.Settings.get_default();
gtkSettings.connect('notify::gtk-theme-name', Lang.bind(this, this._themeChanged));
......@@ -367,13 +356,11 @@ var Application = new Lang.Class({
return;
}
if (!application.isBooks) {
try {
goaClient = Goa.Client.new_sync(null);
} catch (e) {
logError(e, 'Unable to create the GOA client');
return;
}
try {
goaClient = Goa.Client.new_sync(null);
} catch (e) {
logError(e, 'Unable to create the GOA client');
return;
}
connectionQueue = new TrackerController.TrackerConnectionQueue();
......@@ -414,8 +401,7 @@ var Application = new Lang.Class({
if (this._mainWindow)
return;
if (!this.isBooks)
this._initGettingStarted();
this._initGettingStarted();
notificationManager = new Notifications.NotificationManager();
this._mainWindow = new MainWindow.MainWindow(this);
......
......@@ -22,7 +22,6 @@
const EvDocument = imports.gi.EvinceDocument;
const EvView = imports.gi.EvinceView;
const LOKView = imports.lokview;
const EPUBView = imports.epubview;
const GdkPixbuf = imports.gi.GdkPixbuf;
const Gio = imports.gi.Gio;
const Gd = imports.gi.Gd;
......@@ -709,17 +708,7 @@ const DocCommon = new Lang.Class({
loadLocal: function(passwd, cancellable, callback) {
Utils.debug('Loading ' + this.__name__ + ' ' + this.id + ' from ' + this.uriToLoad);
if (this.mimeType == 'application/x-mobipocket-ebook' ||
this.mimeType == 'application/x-fictionbook+xml' ||
this.mimeType == 'application/x-zip-compressed-fb2') {
let exception = new GLib.Error(Gio.IOErrorEnum,
Gio.IOErrorEnum.NOT_SUPPORTED,
"Internal error: Ebooks preview isn't support yet");
callback(this, null, exception);
return;
}
if (LOKView.isOpenDocumentFormat(this.mimeType) && !Application.application.isBooks) {
if (LOKView.isOpenDocumentFormat(this.mimeType)) {
let exception = null;
if (!LOKView.isAvailable()) {
exception = new GLib.Error(Gio.IOErrorEnum,
......@@ -730,11 +719,6 @@ const DocCommon = new Lang.Class({
return;
}
if (EPUBView.isEpub(this.mimeType) && Application.application.isBooks) {
callback(this, null, null);
return;
}
GdPrivate.pdf_loader_load_uri_async(this.uriToLoad, passwd, cancellable, Lang.bind(this,
function(source, res) {
try {
......@@ -1131,8 +1115,6 @@ const GoogleDocument = new Lang.Class({
description = _("Spreadsheet");
else if (this.rdfType.indexOf('nfo#Presentation') != -1)
description = _("Presentation");
else if (this.rdfType.indexOf('nfo#EBook') != -1)
description = _("e-Book");
else
description = _("Document");
......@@ -1428,8 +1410,6 @@ const SkydriveDocument = new Lang.Class({
description = _("Spreadsheet");
else if (this