]> www.fi.muni.cz Git - evince.git/commitdiff
Conditionally install dvi and djvu thumbnailer schemas
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Mon, 18 Apr 2005 21:23:17 +0000 (21:23 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Mon, 18 Apr 2005 21:23:17 +0000 (21:23 +0000)
ChangeLog
thumbnailer/Makefile.am
thumbnailer/evince-thumbnailer-djvu.schemas [new file with mode: 0644]
thumbnailer/evince-thumbnailer-dvi.schemas [new file with mode: 0644]

index 58f6f661075ab34fcbc50b9405095c47e045e3b6..d827d3abdc7e063a500e9d4d5e064c452abd95c7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-04-19  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * thumbnailer/Makefile.am:
+       * thumbnailer/evince-thumbnailer-djvu.schemas:
+       * thumbnailer/evince-thumbnailer-dvi.schemas:
+       
+       Conditionally install schemas for djvu/dvi thumbnailer
+
 2005-04-18  David Malcolm  <dmalcolm@redhat.com>
 
        * shell/ev-document-types.h: 
index 81575ebe29a212f78039a91a8d11f2457c36f9b2..08bba91edcf8274805b6f1601afc804e38b32033 100644 (file)
@@ -29,7 +29,21 @@ evince_thumbnailer_LDADD=                            \
 pixmapdir = $(pkgdatadir)
 pixmap_DATA = pdf-icon.png
 
+schema_files = \
+       evince-thumbnailer-dvi.schemas  \
+       evince-thumbnailer-djvu.schemas \
+       evince-thumbnailer.schemas
+
 schema_DATA = evince-thumbnailer.schemas
+
+if ENABLE_DJVU
+schema_DATA += evince-thumbnailer-djvu.schemas
+endif
+
+if ENABLE_DVI
+schema_DATA += evince-thumbnailer-dvi.schemas
+endif
+
 schemadir = $(GCONF_SCHEMA_FILE_DIR)
 
 install-data-local:
@@ -42,6 +56,6 @@ if GCONF_SCHEMAS_INSTALL
 endif
 
 EXTRA_DIST =           \
-        $(pixmap_DATA) \
-       $(schema_DATA)
+       $(pixmap_DATA)  \
+       $(schema_files)  
 
diff --git a/thumbnailer/evince-thumbnailer-djvu.schemas b/thumbnailer/evince-thumbnailer-djvu.schemas
new file mode 100644 (file)
index 0000000..017c757
--- /dev/null
@@ -0,0 +1,30 @@
+<gconfschemafile>
+    <schemalist>
+
+        <schema>
+            <key>/schemas/desktop/gnome/thumbnailers/image@vnd.djvu/enable</key>
+            <applyto>/desktop/gnome/thumbnailers/image@vnd.djvu/enable</applyto>
+            <owner>evince</owner>
+            <type>bool</type>
+            <default>true</default>
+            <locale name="C">
+                <short></short>
+                <long></long>
+            </locale>
+        </schema>
+
+
+        <schema>
+            <key>/schemas/desktop/gnome/thumbnailers/image@vnd.djvu/command</key>
+            <applyto>/desktop/gnome/thumbnailers/image@vnd.djvu/command</applyto>
+            <owner>evince</owner>
+            <type>string</type>
+            <default>evince-thumbnailer -s %s %u %o</default>
+            <locale name="C">
+                <short></short>
+                <long></long>
+            </locale>
+        </schema>
+
+    </schemalist>
+</gconfschemafile>
diff --git a/thumbnailer/evince-thumbnailer-dvi.schemas b/thumbnailer/evince-thumbnailer-dvi.schemas
new file mode 100644 (file)
index 0000000..fe74c61
--- /dev/null
@@ -0,0 +1,30 @@
+<gconfschemafile>
+    <schemalist>
+
+        <schema>
+            <key>/schemas/desktop/gnome/thumbnailers/application@x-dvi/enable</key>
+            <applyto>/desktop/gnome/thumbnailers/application@x-dvi/enable</applyto>
+            <owner>evince</owner>
+            <type>bool</type>
+            <default>true</default>
+            <locale name="C">
+                <short></short>
+                <long></long>
+            </locale>
+        </schema>
+
+
+        <schema>
+            <key>/schemas/desktop/gnome/thumbnailers/application@x-dvi/command</key>
+            <applyto>/desktop/gnome/thumbnailers/application@x-dvi/command</applyto>
+            <owner>evince</owner>
+            <type>string</type>
+            <default>evince-thumbnailer -s %s %u %o</default>
+            <locale name="C">
+                <short></short>
+                <long></long>
+            </locale>
+        </schema>
+
+    </schemalist>
+</gconfschemafile>