From 1a8a7520ef13e6d7a2f38e11e80c01cf76825d50 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Mon, 18 Apr 2005 21:23:17 +0000 Subject: [PATCH] Conditionally install dvi and djvu thumbnailer schemas --- ChangeLog | 8 ++++++ thumbnailer/Makefile.am | 18 +++++++++++-- thumbnailer/evince-thumbnailer-djvu.schemas | 30 +++++++++++++++++++++ thumbnailer/evince-thumbnailer-dvi.schemas | 30 +++++++++++++++++++++ 4 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 thumbnailer/evince-thumbnailer-djvu.schemas create mode 100644 thumbnailer/evince-thumbnailer-dvi.schemas diff --git a/ChangeLog b/ChangeLog index 58f6f661..d827d3ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-04-19 Nickolay V. Shmyrev + + * 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 * shell/ev-document-types.h: diff --git a/thumbnailer/Makefile.am b/thumbnailer/Makefile.am index 81575ebe..08bba91e 100644 --- a/thumbnailer/Makefile.am +++ b/thumbnailer/Makefile.am @@ -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 index 00000000..017c757d --- /dev/null +++ b/thumbnailer/evince-thumbnailer-djvu.schemas @@ -0,0 +1,30 @@ + + + + + /schemas/desktop/gnome/thumbnailers/image@vnd.djvu/enable + /desktop/gnome/thumbnailers/image@vnd.djvu/enable + evince + bool + true + + + + + + + + + /schemas/desktop/gnome/thumbnailers/image@vnd.djvu/command + /desktop/gnome/thumbnailers/image@vnd.djvu/command + evince + string + evince-thumbnailer -s %s %u %o + + + + + + + + diff --git a/thumbnailer/evince-thumbnailer-dvi.schemas b/thumbnailer/evince-thumbnailer-dvi.schemas new file mode 100644 index 00000000..fe74c61f --- /dev/null +++ b/thumbnailer/evince-thumbnailer-dvi.schemas @@ -0,0 +1,30 @@ + + + + + /schemas/desktop/gnome/thumbnailers/application@x-dvi/enable + /desktop/gnome/thumbnailers/application@x-dvi/enable + evince + bool + true + + + + + + + + + /schemas/desktop/gnome/thumbnailers/application@x-dvi/command + /desktop/gnome/thumbnailers/application@x-dvi/command + evince + string + evince-thumbnailer -s %s %u %o + + + + + + + + -- 2.43.5