From 540e2e460c8155a22b10c1712eec71c9bf25aea9 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Mon, 3 Dec 2012 23:48:48 +0100 Subject: invest-applet: port to gobject introspection there is an issue to fix with self.applet.window.get_origin in applet.py --- invest-applet/data/Invest_Applet.server.in.in | 25 ----------- invest-applet/data/Invest_Applet.xml | 15 +++---- invest-applet/data/MATE_GtikApplet.server | 18 -------- invest-applet/data/Makefile.am | 52 +++++++++++----------- ...te.applets.InvestApplet.mate-panel-applet.in.in | 17 +++++++ ...ate.panel.applet.InvestAppletFactory.service.in | 3 ++ 6 files changed, 51 insertions(+), 79 deletions(-) delete mode 100644 invest-applet/data/Invest_Applet.server.in.in delete mode 100644 invest-applet/data/MATE_GtikApplet.server create mode 100644 invest-applet/data/org.mate.applets.InvestApplet.mate-panel-applet.in.in create mode 100644 invest-applet/data/org.mate.panel.applet.InvestAppletFactory.service.in (limited to 'invest-applet/data') diff --git a/invest-applet/data/Invest_Applet.server.in.in b/invest-applet/data/Invest_Applet.server.in.in deleted file mode 100644 index fe4c6da5..00000000 --- a/invest-applet/data/Invest_Applet.server.in.in +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/invest-applet/data/Invest_Applet.xml b/invest-applet/data/Invest_Applet.xml index 832f6b83..d4a3e611 100644 --- a/invest-applet/data/Invest_Applet.xml +++ b/invest-applet/data/Invest_Applet.xml @@ -1,10 +1,5 @@ - - - - - - - - - - + + + + + diff --git a/invest-applet/data/MATE_GtikApplet.server b/invest-applet/data/MATE_GtikApplet.server deleted file mode 100644 index 73f0717b..00000000 --- a/invest-applet/data/MATE_GtikApplet.server +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/invest-applet/data/Makefile.am b/invest-applet/data/Makefile.am index e304109a..333040df 100644 --- a/invest-applet/data/Makefile.am +++ b/invest-applet/data/Makefile.am @@ -1,26 +1,38 @@ SUBDIRS = art # ****************************************************************************** -# Panel applet matecomponent stuff +# Panel applet DBUS stuff # ****************************************************************************** -serverdir = $(libdir)/matecomponent/servers -server_in_files = Invest_Applet.server.in -server_DATA = \ - $(server_in_files:.server.in=.server) \ - MATE_GtikApplet.server +servicedir = $(datadir)/dbus-1/services +service_in_files = org.mate.panel.applet.InvestAppletFactory.service.in +service_DATA = $(service_in_files:.service.in=.service) + +org.mate.panel.applet.InvestAppletFactory.service: $(service_in_files) + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + $< > $@ # ****************************************************************************** -# MateConf Schemas +# Panel stuff # ****************************************************************************** -# MateConf Preference Schemas -#schemadir = $(MATECONF_SCHEMA_FILE_DIR) -#schema_in_files = deskbar-applet.schemas.in -#schema_DATA = $(schema_in_files:.schemas.in=.schemas) + +appletdir = $(datadir)/mate-panel/applets +applet_in_files = org.mate.applets.InvestApplet.mate-panel-applet.in +applet_DATA = $(applet_in_files:.mate-panel-applet.in=.mate-panel-applet) + +$(applet_in_files): $(applet_in_files).in Makefile + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + -e "s|\@VERSION\@|$(PACKAGE_VERSION)|" \ + $< > $@ + +%.mate-panel-applet: %.mate-panel-applet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache # ****************************************************************************** # Misc data # ****************************************************************************** -uidir = $(datadir)/mate-2.0/ui + +uidir = $(datadir)/mate-applets ui_DATA = \ Invest_Applet.xml builder_DATA = \ @@ -32,26 +44,14 @@ investbindir = $(libdir)/invest-applet # ****************************************************************************** # Build rules # ****************************************************************************** -@INTLTOOL_SERVER_RULE@ -@INTLTOOL_SCHEMAS_RULE@ - -$(server_in_files): $(server_in_files:.server.in=.server.in.in) - sed -e "s|\@LIBEXECDIR\@|$(libexecdir)|" $< > $@ - -#if MATECONF_SCHEMAS_INSTALL -#install-data-local: install-schemas -#install-schemas: -# MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) \ -# $(MATECONFTOOL) --makefile-install-rule $(schema_DATA) -#endif DISTCLEANFILES = \ $(server_in_files) \ $(server_in_files:.server.in=.server) EXTRA_DIST = \ - Invest_Applet.server.in.in \ - MATE_GtikApplet.server \ + org.mate.applets.InvestApplet.mate-panel-applet.in.in \ + $(service_in_files) \ $(ui_DATA) \ $(builder_DATA) diff --git a/invest-applet/data/org.mate.applets.InvestApplet.mate-panel-applet.in.in b/invest-applet/data/org.mate.applets.InvestApplet.mate-panel-applet.in.in new file mode 100644 index 00000000..00a83afb --- /dev/null +++ b/invest-applet/data/org.mate.applets.InvestApplet.mate-panel-applet.in.in @@ -0,0 +1,17 @@ +[Applet Factory] +Id=InvestAppletFactory +Location=@LIBEXECDIR@/invest-applet +_Name=Invest Applet Factory +_Description=Factory for creating the invest applet. + +[InvestApplet] +_Name=Invest +_Description=Track your invested money. +Icon=invest-applet +BonoboId=OAFIID:Invest_Applet_Factory +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-applets +X-MATE-Bugzilla-Component=invest +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=invest-applet + diff --git a/invest-applet/data/org.mate.panel.applet.InvestAppletFactory.service.in b/invest-applet/data/org.mate.panel.applet.InvestAppletFactory.service.in new file mode 100644 index 00000000..353c578a --- /dev/null +++ b/invest-applet/data/org.mate.panel.applet.InvestAppletFactory.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.mate.panel.applet.InvestAppletFactory +Exec=@LIBEXECDIR@/invest-applet -- cgit v1.2.1