summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2011-01-08 14:20:26 +0100
committerCosimo Cecchi <cosimoc@gnome.org>2011-01-10 13:00:59 +0100
commitf9b12afdf4687453bded56390042c8c79f299dec (patch)
treeafada69a94fb264da1babd73e64222a00c0e93d2
parentb455a7fbb4d601e603d377e48ad324bc69cda162 (diff)
downloadgnome-font-viewer-f9b12afdf4687453bded56390042c8c79f299dec.tar.gz
font-viewer: Install .thumbnailer file to register gnome-thumbnail-font
libgnome-desktop doesn't use GConf anymore.
-rw-r--r--Makefile.am15
-rw-r--r--fontilus.schemas.in109
-rw-r--r--gnome-font-viewer.thumbnailer5
3 files changed, 8 insertions, 121 deletions
diff --git a/Makefile.am b/Makefile.am
index 5757064..3ffdbd4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,16 +39,8 @@ desktopdir = $(datadir)/applications
desktop_in_files = gnome-font-viewer.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
-install-data-local: install-gconf-schemas install-desktop-database
-
-if GCONF_SCHEMAS_INSTALL
-install-gconf-schemas:
- if test -z "$(DESTDIR)"; then \
- GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule fontilus.schemas; \
- fi
-else
-install-gconf-schemas:
-endif
+thumbnailerdir = $(datadir)/thumbnailers
+thumbnailer_DATA = gnome-font-viewer.thumbnailer
install-desktop-database: install-desktopDATA
update-desktop-database $(DESTDIR)$(desktopdir)
@@ -58,13 +50,12 @@ uninstall-local:
@INTLTOOL_DESKTOP_RULE@
@INTLTOOL_DIRECTORY_RULE@
-@INTLTOOL_SCHEMAS_RULE@
CLEANFILES = $(desktop_in_files) $(desktop_DATA) \
$(schemas_DATA) $(directory_DATA)
EXTRA_DIST = \
- fontilus.schemas.in \
+ gnome-font-viewer.thumbnailer \
gnome-font-viewer.desktop.in.in
-include $(top_srcdir)/git.mk
diff --git a/fontilus.schemas.in b/fontilus.schemas.in
deleted file mode 100644
index b989367..0000000
--- a/fontilus.schemas.in
+++ /dev/null
@@ -1,109 +0,0 @@
-<?xml version="1.0"?>
-<gconfschemafile>
- <schemalist>
- <schema>
- <key>/schemas/desktop/gnome/thumbnailers/application@x-font-ttf/command</key>
- <applyto>/desktop/gnome/thumbnailers/application@x-font-ttf/command</applyto>
- <type>string</type>
- <default>gnome-thumbnail-font %u %o</default>
- <locale name="C">
- <short>Thumbnail command for TrueType fonts</short>
- <long>
- Set this key to the command used to create thumbnails for
- TrueType fonts.
- </long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/desktop/gnome/thumbnailers/application@x-font-ttf/enable</key>
- <applyto>/desktop/gnome/thumbnailers/application@x-font-ttf/enable</applyto>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Whether to thumbnail TrueType fonts</short>
- <long>
- If set to true, then TrueType fonts will be thumbnailed.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/desktop/gnome/thumbnailers/application@x-font-type1/command</key>
- <applyto>/desktop/gnome/thumbnailers/application@x-font-type1/command</applyto>
- <type>string</type>
- <default>gnome-thumbnail-font %u %o</default>
- <locale name="C">
- <short>Thumbnail command for Type1 fonts</short>
- <long>
- Set this key to the command used to create thumbnails for
- Type1 fonts.
- </long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/desktop/gnome/thumbnailers/application@x-font-type1/enable</key>
- <applyto>/desktop/gnome/thumbnailers/application@x-font-type1/enable</applyto>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Whether to thumbnail Type1 fonts</short>
- <long>
- If set to true, then Type1 fonts will be thumbnailed.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/desktop/gnome/thumbnailers/application@x-font-pcf/command</key>
- <applyto>/desktop/gnome/thumbnailers/application@x-font-pcf/command</applyto>
- <type>string</type>
- <default>gnome-thumbnail-font %u %o</default>
- <locale name="C">
- <short>Thumbnail command for PCF fonts</short>
- <long>
- Set this key to the command used to create thumbnails for
- PCF fonts.
- </long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/desktop/gnome/thumbnailers/application@x-font-pcf/enable</key>
- <applyto>/desktop/gnome/thumbnailers/application@x-font-pcf/enable</applyto>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Whether to thumbnail PCF fonts</short>
- <long>
- If set to true, then PCF fonts will be thumbnailed.
- </long>
- </locale>
- </schema>
-
- <schema>
- <key>/schemas/desktop/gnome/thumbnailers/application@x-font-otf/command</key>
- <applyto>/desktop/gnome/thumbnailers/application@x-font-otf/command</applyto>
- <type>string</type>
- <default>gnome-thumbnail-font %u %o</default>
- <locale name="C">
- <short>Thumbnail command for OpenType fonts</short>
- <long>
- Set this key to the command used to create thumbnails for
- OpenType fonts.
- </long>
- </locale>
- </schema>
- <schema>
- <key>/schemas/desktop/gnome/thumbnailers/application@x-font-otf/enable</key>
- <applyto>/desktop/gnome/thumbnailers/application@x-font-otf/enable</applyto>
- <type>bool</type>
- <default>true</default>
- <locale name="C">
- <short>Whether to thumbnail OpenType fonts</short>
- <long>
- If set to true, then OpenType fonts will be thumbnailed.
- </long>
- </locale>
- </schema>
-
- </schemalist>
-</gconfschemafile>
diff --git a/gnome-font-viewer.thumbnailer b/gnome-font-viewer.thumbnailer
new file mode 100644
index 0000000..edf735f
--- /dev/null
+++ b/gnome-font-viewer.thumbnailer
@@ -0,0 +1,5 @@
+[Thumbnailer Entry]
+TryExec=gnome-thumbnail-font
+Exec=gnome-thumbnail-font %u %o
+MimeType=application/x-font-ttf;application/x-font-pcf;application/x-font-type1;application/x-font-otf;
+