Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-05-21 11:46:37 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-05-21 11:46:37 (GMT)
commit3294f7102500ef787ffd0314c95bfe59c0c9a6bf (patch)
tree4ed75791ac2ea218487f4a3758e90084779ae4bf
parente533ab12f74d16805e0d9a984f9f6383ab5d7bc6 (diff)
Conditionally add dvi and djvu mime types to desktop file. Fix for 304658
-rw-r--r--ChangeLog10
-rw-r--r--configure.ac14
-rw-r--r--data/Makefile.am4
-rw-r--r--data/evince.desktop.in.in (renamed from data/evince.desktop.in)2
-rw-r--r--po/POTFILES.in2
5 files changed, 27 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 59e8973..8240a13 100644
--- 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),
diff --git a/configure.ac b/configure.ac
index 93c9db9..4d9f0c0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/data/Makefile.am b/data/Makefile.am
index 9eece2b..183e455 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -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)
diff --git a/data/evince.desktop.in b/data/evince.desktop.in.in
index 2d9083c..4edf586 100644
--- a/data/evince.desktop.in
+++ b/data/evince.desktop.in.in
@@ -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@
diff --git a/po/POTFILES.in b/po/POTFILES.in
index efc30ec..51a1c5a 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -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