]> www.fi.muni.cz Git - evince.git/commitdiff
Conditionally add dvi and djvu mime types to desktop file. Fix for 304658
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sat, 21 May 2005 11:46:37 +0000 (11:46 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sat, 21 May 2005 11:46:37 +0000 (11:46 +0000)
ChangeLog
configure.ac
data/Makefile.am
data/evince.desktop.in.in [moved from data/evince.desktop.in with 83% similarity]
po/POTFILES.in

index 59e8973c258d6500571c34b92986540ee29916d2..8240a131ddc0a24e603514c8902af25b27b6c15c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2005-05-21  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * configure.ac:
+       * data/Makefile.am:
+       * data/evince.desktop.in: 
+       * data/evince.desktop.in.in:
+       * po/POTFILES.in:
+       
+       Add conditionally dvi and djvu to desktop types. Fix for 304658.
+
 Sat May 21 00:21:30 2005  Jonathan Blandford  <jrb@redhat.com>
 
        * shell/ev-view.c: (view_update_adjustments),
index 93c9db9db4272f44b097e8668adc36d0e99e900f..4d9f0c0d1f088dfd30caf61ac69fb433ff887170 100644 (file)
@@ -164,6 +164,18 @@ AM_CONDITIONAL(WITH_TYPE1_FONTS, test x$enable_type1_fonts = xyes)
 
 dnl ================== End of dvi checks ===================================================
 
+dnl =================== Mime types list ====================================================
+
+EVINCE_MIME_TYPES="application/pdf;application/postscript;application/x-gzpostscript"
+
+if test "x$enable_dvi" = "xyes"; then
+       EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;application/x-dvi"
+fi
+if test "x$enable_djvu" = "xyes"; then
+       EVINCE_MIME_TYPES="$EVINCE_MIME_TYPES;image/vnd.djvu"
+fi
+AC_SUBST(EVINCE_MIME_TYPES)
+
 dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
 dnl stolen from nautilus and gnome-common
 
@@ -216,7 +228,6 @@ else
        AC_MSG_RESULT(no)
 fi
 
-
 AC_OUTPUT([
 Makefile
 cut-n-paste/Makefile
@@ -224,6 +235,7 @@ cut-n-paste/recent-files/Makefile
 cut-n-paste/zoom-control/Makefile
 cut-n-paste/toolbar-editor/Makefile
 data/Makefile
+data/evince.desktop.in
 lib/Makefile
 pdf/Makefile
 pixbuf/Makefile
index 9eece2b28478ae3c2c5cd68bed34f28ec6b0704f..183e455fb19bfe549d0de8f4d2df553999e90d6e 100644 (file)
@@ -15,8 +15,8 @@ glade_DATA =                          \
        evince-password.glade           \
        $(NULL)
 
-DESKTOP_IN_FILES= evince.desktop.in
-DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in=.desktop)
+DESKTOP_IN_FILES= evince.desktop.in.in
+DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop)
 
 desktopdir = $(datadir)/applications
 desktop_DATA = $(DESKTOP_FILES)
similarity index 83%
rename from data/evince.desktop.in
rename to data/evince.desktop.in.in
index 2d9083c96fafdebd00b7dc1ce8737dc8b51a0cc3..4edf5869de5cf7a85791ddad74d028d5d6257cfd 100644 (file)
@@ -13,4 +13,4 @@ X-GNOME-Bugzilla-Bugzilla=GNOME
 X-GNOME-Bugzilla-Product=evince
 X-GNOME-Bugzilla-Component=General
 Categories=GNOME;Application;Graphics;VectorGraphics;Viewer;
-MimeType=application/pdf;application/postscript;application/x-gzpostscript
+MimeType=@EVINCE_MIME_TYPES@
index efc30ec47baaa6251ff39f4d40d5d853f18ec96b..51a1c5a087707f3371cd78f42bd178bcad5df307 100644 (file)
@@ -3,7 +3,7 @@
 [encoding: UTF-8]
 cut-n-paste/zoom-control/ephy-zoom.h
 data/evince-password.glade
-data/evince.desktop.in
+data/evince.desktop.in.in
 data/evince.schemas.in
 cut-n-paste/toolbar-editor/egg-toolbar-editor.c
 dvi/mdvi-lib/dviread.c