Permalink
Browse files

font-viewer: replace mateconf schema with thumbnailer file

  • Loading branch information...
1 parent 029158e commit 2b96b475c36a35871d3a0ac13a7693eb102f5a6d @stefano-k stefano-k committed Oct 13, 2012
Showing with 7 additions and 121 deletions.
  1. +3 −12 font-viewer/Makefile.am
  2. +0 −109 font-viewer/fontilus.schemas.in
  3. +4 −0 font-viewer/mate-font-viewer.thumbnailer
View
@@ -10,23 +10,14 @@ mate_thumbnail_font_SOURCES = ftstream-vfs.c font-thumbnailer.c totem-resources.
mate_font_viewer_LDADD = $(MATECC_CAPPLETS_LIBS) $(FONT_VIEWER_LIBS)
mate_font_viewer_SOURCES = ftstream-vfs.c font-view.c
-schemasdir = $(MATECONF_SCHEMA_FILE_DIR)
-schemas_DATA = fontilus.schemas
+thumbnailerdir = $(datadir)/thumbnailers
+thumbnailer_DATA = mate-font-viewer.thumbnailer
desktopdir = $(datadir)/applications
desktop_in_files = mate-font-viewer.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
-install-data-local: install-mateconf-schemas install-desktop-database
-
-if MATECONF_SCHEMAS_INSTALL
-install-mateconf-schemas:
- if test -z "$(DESTDIR)"; then \
- MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule fontilus.schemas; \
- fi
-else
-install-mateconf-schemas:
-endif
+install-data-local: install-desktop-database
install-desktop-database: install-desktopDATA
update-desktop-database $(DESTDIR)$(desktopdir)
@@ -1,109 +0,0 @@
-<?xml version="1.0"?>
-<mateconfschemafile>
- <schemalist>
- <schema>
- <key>/schemas/desktop/mate/thumbnailers/application@x-font-ttf/command</key>
- <applyto>/desktop/mate/thumbnailers/application@x-font-ttf/command</applyto>
- <type>string</type>
- <default>mate-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/mate/thumbnailers/application@x-font-ttf/enable</key>
- <applyto>/desktop/mate/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/mate/thumbnailers/application@x-font-type1/command</key>
- <applyto>/desktop/mate/thumbnailers/application@x-font-type1/command</applyto>
- <type>string</type>
- <default>mate-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/mate/thumbnailers/application@x-font-type1/enable</key>
- <applyto>/desktop/mate/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/mate/thumbnailers/application@x-font-pcf/command</key>
- <applyto>/desktop/mate/thumbnailers/application@x-font-pcf/command</applyto>
- <type>string</type>
- <default>mate-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/mate/thumbnailers/application@x-font-pcf/enable</key>
- <applyto>/desktop/mate/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/mate/thumbnailers/application@x-font-otf/command</key>
- <applyto>/desktop/mate/thumbnailers/application@x-font-otf/command</applyto>
- <type>string</type>
- <default>mate-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/mate/thumbnailers/application@x-font-otf/enable</key>
- <applyto>/desktop/mate/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>
-</mateconfschemafile>
@@ -0,0 +1,4 @@
+[Thumbnailer Entry]
+TryExec=mate-thumbnail-font
+Exec=mate-thumbnail-font %u %o
+MimeType=application/x-font-ttf;application/x-font-type1;application/x-font-pcf;application/x-font-otf

0 comments on commit 2b96b47

Please sign in to comment.