[anjal] Add default application for the control-center



commit 6dfaaecda8c122de9d52bf7551dac7ce5b35b3d6
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 24 10:30:57 2009 +0100

    Add default application for the control-center
    
    Add an XML file to add Anjal to GNOME's default applications
    capplet.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=596168

 po/POTFILES.in   |    1 +
 src/Makefile.am  |    7 +++++++
 src/anjal.xml.in |   13 +++++++++++++
 3 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index e732bed..4fe48fd 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -24,3 +24,4 @@ src/em-webkit-stream.c
 src/em-mozembed-stream.c 
 src/mail-people-view.c
 src/anjal.schemas.in
+src/anjal.xml.in
diff --git a/src/Makefile.am b/src/Makefile.am
index 917eed0..daa7f98 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -112,3 +112,10 @@ schema_in_files = anjal.schemas.in
 schema_DATA = $(schema_in_files:.schemas.in=.schemas)
 @INTLTOOL_SCHEMAS_RULE@
 
+# Default application
+
+defaultdir = $(datadir)/gnome-control-center/default-apps/
+default_in_files = anjal.xml.in
+default_DATA = $(default_in_files:.xml.in=.xml)
+ INTLTOOL_XML_RULE@
+
diff --git a/src/anjal.xml.in b/src/anjal.xml.in
new file mode 100644
index 0000000..19d7606
--- /dev/null
+++ b/src/anjal.xml.in
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE default-apps SYSTEM "gnome-da-list.dtd">
+<default-apps>
+  <mail-readers>
+    <mail-reader>
+      <_name>Anjal Email Reader</_name>
+      <executable>anjal</executable>
+      <command>anjal %s</command>
+      <icon-name>evolution</icon-name>
+      <run-in-terminal>false</run-in-terminal>
+    </mail-reader>
+  </mail-readers>
+</default-apps>



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