[ease] Added mime type.



commit 0b6c4185093345e8486f940719ab7184cec25f6f
Author: Nate Stedman <natesm gmail com>
Date:   Sun Aug 8 09:25:33 2010 -0400

    Added mime type.

 data/Makefile.am                       |   27 ++++++++
 data/ease-mime.xml                     |    7 ++
 data/ease.desktop.in                   |    1 +
 data/ease.desktop.in.in                |    1 +
 data/gnome-mime-application-x-ease.svg |  103 ++++++++++++++++++++++++++++++++
 5 files changed, 139 insertions(+), 0 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 7126473..bc3f7ed 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -8,15 +8,26 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 appicondir = $(datadir)/icons/hicolor/scalable/apps
 appicon_DATA = icons/hicolor/scalable/apps/ease.svg
 
+# mime type and icon
+mimedir = $(datadir)/mime/packages
+mime_DATA = ease-mime.xml
+
+mimeicondir = $(datadir)/icons/gnome/scalable/mimetypes
+mimeicon_DATA = gnome-mime-application-x-ease.svg
+
+# svg images
 svgdir = $(datadir)/ease/svg
 svg_DATA = $(wildcard $(top_srcdir)/data/svg/*.svg)
 
+# gtkbuilder files
 uidir = $(datadir)/ease/ui
 ui_DATA = $(wildcard $(top_srcdir)/data/ui/*.ui)
 
+# theme defaults
 jsondir = $(datadir)/ease
 json_DATA = theme-defaults.json
 
+# themes
 blackdir = $(datadir)/ease/themes/Black
 black_DATA = themes/Black/Theme.json
 
@@ -51,3 +62,19 @@ EXTRA_DIST = \
     $(green_DATA) \
     $(red_DATA) \
     $(white_DATA)
+
+# installing mime type
+install-data-local: install-mimeDATA
+	if [ -f $(DESTDIR)$(datadir)/mime/packages/freedesktop.org.xml ] ; then \
+	  if which update-mime-database>/dev/null 2>&1; then \
+	    update-mime-database $(DESTDIR)$(datadir)/mime; \
+	  fi \
+	fi
+
+uninstall-local:
+	if [ -f $(DESTDIR)$(datadir)/mime/packages/freedesktop.org.xml ] ; then \
+	  if which update-mime-database>/dev/null 2>&1; then \
+	    update-mime-database $(DESTDIR)$(datadir)/mime; \
+	  fi \
+	fi
+
diff --git a/data/ease-mime.xml b/data/ease-mime.xml
new file mode 100644
index 0000000..e48c0f4
--- /dev/null
+++ b/data/ease-mime.xml
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info";>
+	<mime-type type="application/x-ease">
+		<comment>Ease Document</comment>
+		<glob pattern="*.ease"/>
+	</mime-type>
+</mime-info>
diff --git a/data/ease.desktop.in b/data/ease.desktop.in
index 718ff34..463b6fc 100644
--- a/data/ease.desktop.in
+++ b/data/ease.desktop.in
@@ -7,6 +7,7 @@ Type=Application
 Categories=Office;
 Terminal=false
 StartupNotify=true
+MimeType=application/x-ease
 X-GNOME-Bugzilla-Bugzilla=GNOME
 X-GNOME-Bugzilla-Product=ease
 X-GNOME-Bugzilla-Component=general
diff --git a/data/ease.desktop.in.in b/data/ease.desktop.in.in
index 718ff34..463b6fc 100644
--- a/data/ease.desktop.in.in
+++ b/data/ease.desktop.in.in
@@ -7,6 +7,7 @@ Type=Application
 Categories=Office;
 Terminal=false
 StartupNotify=true
+MimeType=application/x-ease
 X-GNOME-Bugzilla-Bugzilla=GNOME
 X-GNOME-Bugzilla-Product=ease
 X-GNOME-Bugzilla-Component=general
diff --git a/data/gnome-mime-application-x-ease.svg b/data/gnome-mime-application-x-ease.svg
new file mode 100644
index 0000000..ab11b84
--- /dev/null
+++ b/data/gnome-mime-application-x-ease.svg
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg"; xmlns:xlink="http://www.w3.org/1999/xlink"; x="0px" y="0px"
+	 width="48px" height="48px" viewBox="0 0 48 48" enable-background="new 0 0 48 48" xml:space="preserve">
+<rect x="2" y="8" fill="#888A85" width="44" height="35"/>
+<g>
+	<rect x="3" y="8" fill="#EEEEEC" width="42" height="34"/>
+</g>
+<g>
+	<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="5.751" y1="6.251" x2="42.2505" y2="42.7505">
+		<stop  offset="0" style="stop-color:#D3D7CF"/>
+		<stop  offset="1" style="stop-color:#BABDB6"/>
+	</linearGradient>
+	<rect x="4" y="8" fill="url(#SVGID_1_)" width="40" height="33"/>
+</g>
+<g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="10.938" y1="13" x2="40.062" y2="13"/>
+			<path fill="#888A85" d="M40.062,14H10.938c-0.552,0-1-0.448-1-1s0.448-1,1-1h29.125c0.552,0,1,0.448,1,1S40.615,14,40.062,14z"/>
+		</g>
+	</g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="7.938" y1="13" x2="7.938" y2="13"/>
+			<path fill="#888A85" d="M7.94,14c-0.27,0-0.52-0.11-0.71-0.29C7.04,13.52,6.94,13.26,6.94,13c0-0.26,0.1-0.52,0.29-0.71
+				c0.37-0.37,1.05-0.37,1.42,0c0.18,0.19,0.29,0.45,0.29,0.71c0,0.26-0.11,0.52-0.29,0.71C8.46,13.89,8.2,14,7.94,14z"/>
+		</g>
+	</g>
+</g>
+<g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="10.938" y1="19" x2="40.062" y2="19"/>
+			<path fill="#888A85" d="M40.062,20H10.938c-0.552,0-1-0.448-1-1s0.448-1,1-1h29.125c0.552,0,1,0.448,1,1S40.615,20,40.062,20z"/>
+		</g>
+	</g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="7.938" y1="19" x2="7.938" y2="19"/>
+			<path fill="#888A85" d="M7.94,20c-0.27,0-0.52-0.11-0.71-0.29C7.04,19.52,6.94,19.26,6.94,19c0-0.26,0.1-0.52,0.29-0.71
+				c0.37-0.37,1.04-0.37,1.41,0c0.19,0.19,0.3,0.45,0.3,0.71c0,0.26-0.11,0.52-0.3,0.71C8.46,19.89,8.2,20,7.94,20z"/>
+		</g>
+	</g>
+</g>
+<g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="10.938" y1="25" x2="40.062" y2="25"/>
+			<path fill="#888A85" d="M40.062,26H10.938c-0.552,0-1-0.448-1-1s0.448-1,1-1h29.125c0.552,0,1,0.448,1,1S40.615,26,40.062,26z"/>
+		</g>
+	</g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="7.938" y1="25" x2="7.938" y2="25"/>
+			<path fill="#888A85" d="M7.94,26c-0.27,0-0.52-0.11-0.71-0.29C7.04,25.52,6.94,25.27,6.94,25c0-0.26,0.1-0.52,0.29-0.71
+				c0.37-0.37,1.04-0.37,1.41,0c0.19,0.19,0.3,0.45,0.3,0.71c0,0.27-0.11,0.52-0.3,0.71C8.46,25.89,8.2,26,7.94,26z"/>
+		</g>
+	</g>
+</g>
+<g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="10.938" y1="31" x2="40.062" y2="31"/>
+			<path fill="#888A85" d="M40.062,32H10.938c-0.552,0-1-0.448-1-1s0.448-1,1-1h29.125c0.552,0,1,0.448,1,1S40.615,32,40.062,32z"/>
+		</g>
+	</g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="7.938" y1="31" x2="7.938" y2="31"/>
+			<path fill="#888A85" d="M7.94,32c-0.26,0-0.52-0.11-0.71-0.29C7.04,31.52,6.94,31.26,6.94,31c0-0.26,0.1-0.52,0.29-0.71
+				c0.37-0.37,1.04-0.37,1.42,0c0.18,0.19,0.29,0.45,0.29,0.71c0,0.26-0.11,0.52-0.3,0.71C8.46,31.89,8.2,32,7.94,32z"/>
+		</g>
+	</g>
+</g>
+<g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="10.938" y1="37" x2="40.062" y2="37"/>
+			<path fill="#888A85" d="M40.062,38H10.938c-0.552,0-1-0.448-1-1s0.448-1,1-1h29.125c0.552,0,1,0.448,1,1S40.615,38,40.062,38z"/>
+		</g>
+	</g>
+	<g>
+		<g>
+			<line fill="#888A85" x1="7.938" y1="37" x2="7.938" y2="37"/>
+			<path fill="#888A85" d="M7.94,38c-0.27,0-0.52-0.11-0.71-0.29C7.04,37.52,6.94,37.26,6.94,37c0-0.27,0.1-0.52,0.29-0.71
+				c0.37-0.37,1.04-0.37,1.41,0c0.19,0.19,0.3,0.44,0.3,0.71c0,0.26-0.11,0.52-0.3,0.71C8.46,37.89,8.2,38,7.94,38z"/>
+		</g>
+	</g>
+</g>
+<g>
+	<g>
+		<path fill="#888A85" d="M1,7V6c0-2.757,2.243-5,5-5h36c2.757,0,5,2.243,5,5v1H1z"/>
+		<path fill="#2E3436" d="M42,2c2.209,0,4,1.791,4,4H2c0-2.209,1.791-4,4-4H42 M42,0H6C2.691,0,0,2.691,0,6v2h2h44h2V6
+			C48,2.691,45.309,0,42,0L42,0z"/>
+	</g>
+	<g>
+		<path fill="#555753" d="M1.5,6.5V6c0-2.481,2.019-4.5,4.5-4.5h36c2.481,0,4.5,2.019,4.5,4.5v0.5H1.5z"/>
+		<path fill="#888A85" d="M42,2c2.209,0,4,1.791,4,4H2c0-2.209,1.791-4,4-4H42 M42,1H6C3.243,1,1,3.243,1,6v1h1h44h1V6
+			C47,3.243,44.757,1,42,1L42,1z"/>
+	</g>
+</g>
+</svg>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]