aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac14
-rw-r--r--data/GNOME_IndicatorApplet.server.in.in28
-rw-r--r--data/Makefile.am60
-rw-r--r--data/indicator-applet.schemas.in16
-rw-r--r--po/POTFILES.in2
-rw-r--r--po/POTFILES.skip1
7 files changed, 122 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index e8bf693..8eb7aee 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,5 @@
SUBDIRS = \
src \
+ data \
po
diff --git a/configure.ac b/configure.ac
index 4cae40e..03de92c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,6 +30,19 @@ PKG_CHECK_MODULES(APPLET, gtk+-2.0 >= $GTK_REQUIRED_VERSION
AC_SUBST(APPLET_CFLAGS)
AC_SUBST(APPLET_LIBS)
+AC_PATH_PROG(GCONFTOOL, gconftool-2)
+AM_GCONF_SOURCE_2
+
+###########################
+# Internationalization
+###########################
+
+GETTEXT_PACKAGE=indicator-applet
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the default gettext domain])
+
+AM_GLIB_GNU_GETTEXT
+
###########################
# Files
###########################
@@ -37,6 +50,7 @@ AC_SUBST(APPLET_LIBS)
AC_OUTPUT([
Makefile
src/Makefile
+data/Makefile
po/Makefile.in
])
diff --git a/data/GNOME_IndicatorApplet.server.in.in b/data/GNOME_IndicatorApplet.server.in.in
new file mode 100644
index 0000000..bcc6203
--- /dev/null
+++ b/data/GNOME_IndicatorApplet.server.in.in
@@ -0,0 +1,28 @@
+<oaf_info>
+ <oaf_server iid="OAFIID:GNOME_IndicatorApplet_Factory" type="exe"
+ location="@LIBEXECDIR@/indicator-applet">
+
+ <oaf_attribute name="repo_ids" type="stringv">
+ <item value="IDL:Bonobo/GenericFactory:1.0"/>
+ <item value="IDL:Bonobo/Unknown:1.0"/>
+ </oaf_attribute>
+ <oaf_attribute name="name" type="string" _value="Indicator Applet Factory"/>
+ <oaf_attribute name="description" type="string" _value="Indicator Applet Factory"/>
+ <oaf_attribute name="bonobo:environment" type="stringv">
+ <item value="DBUS_SESSION_BUS_ADDRESS"/>
+ </oaf_attribute>
+ </oaf_server>
+
+ <oaf_server iid="OAFIID:GNOME_IndicatorApplet" type="factory"
+ location="OAFIID:GNOME_IndicatorApplet_Factory">
+
+ <oaf_attribute name="repo_ids" type="stringv">
+ <item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
+ <item value="IDL:Bonobo/Control:1.0"/>
+ <item value="IDL:Bonobo/Unknown:1.0"/>
+ </oaf_attribute>
+ <oaf_attribute name="name" type="string" _value="Indicator Applet"/>
+ <oaf_attribute name="description" type="string" _value="An indicator of something that needs your attention on the desktop"/>
+ <oaf_attribute name="panel:icon" type="string" value="stock_stop"/>
+ </oaf_server>
+</oaf_info>
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..7fc4a6f
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,60 @@
+# This file will be processed with automake to create Makefile.in
+
+##############################
+# Bonobo .server
+##############################
+
+serverdir = \
+ $(libdir)/bonobo/servers
+server_in_files = \
+ GNOME_IndicatorApplet.server.in
+server_DATA = \
+ $(server_in_files:.server.in=.server)
+
+$(server_in_files): $(server_in_files:.server.in=.server.in.in)
+ sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" -e "s|\@VERSION\@|$(VERSION)|" $< > $@
+
+@INTLTOOL_SERVER_RULE@
+
+
+##############################
+# GConf Schema
+##############################
+
+schemadir = \
+ $(GCONF_SCHEMA_FILE_DIR)
+
+schema_in_files = \
+ indicator-applet.schemas.in
+
+schema_DATA = \
+ $(schema_in_files:.schemas.in=.schemas)
+
+@INTLTOOL_SCHEMAS_RULE@
+
+
+##############################
+# Autojunk
+##############################
+
+CLEANFILES = \
+ $(server_in_files) \
+ $(server_DATA) \
+ $(schema_DATA) \
+ *.bak
+
+EXTRA_DIST = \
+ GNOME_IndicatorApplet.server.in.in \
+ $(schema_in_files)
+
+MAINTAINERCLEANFILES = \
+ Makefile.in
+
+if GCONF_SCHEMAS_INSTALL
+install-data-local:
+ GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
+ gconftool-2 --makefile-install-rule $(schema_DATA)
+else
+install-data-local:
+endif
+
diff --git a/data/indicator-applet.schemas.in b/data/indicator-applet.schemas.in
new file mode 100644
index 0000000..30172cd
--- /dev/null
+++ b/data/indicator-applet.schemas.in
@@ -0,0 +1,16 @@
+<?xml version="1.0"?>
+<gconfschemafile>
+ <schemalist>
+ <schema>
+ <key>/schemas/apps/indicator-applet/dummy_value</key>
+ <applyto>/apps/indicator-applet/dummy_value</applyto>
+ <owner>indicator-applet</owner>
+ <type>bool</type>
+ <default>FALSE</default>
+ <locale name="C">
+ <short>Setting up basic GConf</short>
+ <long>Building up install directories. Need a dummy value.</long>
+ </locale>
+ </schema>
+ </schemalist>
+</gconfschemafile>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5ddca2b..0426b06 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,2 +1,4 @@
[encoding: UTF-8]
+data/GNOME_IndicatorApplet.server.in.in
+data/indicator-applet.schemas.in
src/applet-main.c
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
new file mode 100644
index 0000000..ee347ff
--- /dev/null
+++ b/po/POTFILES.skip
@@ -0,0 +1 @@
+data/GNOME_IndicatorApplet.server.in