From 1f964c265a0f45c064d312dcd51f985e877cbc55 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 2 Dec 2020 10:19:16 +0100 Subject: mateweather: Use common subdirs - src, data --- mateweather/data/Makefile.am | 36 ++ mateweather/data/mateweather-applet-menu.xml | 7 + mateweather/data/mateweather-dialog.ui | 549 +++++++++++++++++++++ .../data/mateweather-resources.gresource.xml | 7 + ...teWeatherApplet.mate-panel-applet.desktop.in.in | 17 + ...anel.applet.MateWeatherAppletFactory.service.in | 3 + 6 files changed, 619 insertions(+) create mode 100644 mateweather/data/Makefile.am create mode 100644 mateweather/data/mateweather-applet-menu.xml create mode 100644 mateweather/data/mateweather-dialog.ui create mode 100644 mateweather/data/mateweather-resources.gresource.xml create mode 100644 mateweather/data/org.mate.applets.MateWeatherApplet.mate-panel-applet.desktop.in.in create mode 100644 mateweather/data/org.mate.panel.applet.MateWeatherAppletFactory.service.in (limited to 'mateweather/data') diff --git a/mateweather/data/Makefile.am b/mateweather/data/Makefile.am new file mode 100644 index 00000000..4dfe4884 --- /dev/null +++ b/mateweather/data/Makefile.am @@ -0,0 +1,36 @@ +appletdir = $(datadir)/mate-panel/applets +applet_in_files = org.mate.applets.MateWeatherApplet.mate-panel-applet.desktop.in +applet_DATA = $(applet_in_files:.mate-panel-applet.desktop.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)|" \ + $< > $@ + +$(applet_DATA): $(applet_in_files) Makefile + $(AM_V_GEN) $(MSGFMT) --desktop --keyword=Name --keyword=Description --template $< -d $(top_srcdir)/po -o $@ + +servicedir = $(datadir)/dbus-1/services +service_in_files = org.mate.panel.applet.MateWeatherAppletFactory.service.in +service_DATA = $(service_in_files:.service.in=.service) + +org.mate.panel.applet.MateWeatherAppletFactory.service: $(service_in_files) + $(AM_V_GEN)sed \ + -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \ + $< > $@ + +CLEANFILES = \ + $(applet_DATA) \ + $(applet_in_files) \ + $(service_DATA) + +EXTRA_DIST = \ + mateweather-applet-menu.xml \ + mateweather-dialog.ui \ + mateweather-resources.gresource.xml \ + $(applet_in_files:=.in) \ + $(service_in_files) \ + $(ui_DATA) + +-include $(top_srcdir)/git.mk diff --git a/mateweather/data/mateweather-applet-menu.xml b/mateweather/data/mateweather-applet-menu.xml new file mode 100644 index 00000000..8fc0a357 --- /dev/null +++ b/mateweather/data/mateweather-applet-menu.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/mateweather/data/mateweather-dialog.ui b/mateweather/data/mateweather-dialog.ui new file mode 100644 index 00000000..e370ac7e --- /dev/null +++ b/mateweather/data/mateweather-dialog.ui @@ -0,0 +1,549 @@ + + + + + + True + False + window-close + + + diff --git a/mateweather/data/mateweather-resources.gresource.xml b/mateweather/data/mateweather-resources.gresource.xml new file mode 100644 index 00000000..db4b5d57 --- /dev/null +++ b/mateweather/data/mateweather-resources.gresource.xml @@ -0,0 +1,7 @@ + + + + mateweather-applet-menu.xml + mateweather-dialog.ui + + diff --git a/mateweather/data/org.mate.applets.MateWeatherApplet.mate-panel-applet.desktop.in.in b/mateweather/data/org.mate.applets.MateWeatherApplet.mate-panel-applet.desktop.in.in new file mode 100644 index 00000000..03d2b621 --- /dev/null +++ b/mateweather/data/org.mate.applets.MateWeatherApplet.mate-panel-applet.desktop.in.in @@ -0,0 +1,17 @@ +[Applet Factory] +Id=MateWeatherAppletFactory +Location=@LIBEXECDIR@/mateweather-applet +Name=Mateweather Applet Factory +Description=Factory for creating the weather applet. + +[MateWeatherApplet] +Name=Weather Report +Description=Monitor the current weather conditions, and forecasts +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=weather-storm +MateComponentId=OAFIID:MATE_MateWeatherApplet +X-MATE-Bugzilla-Bugzilla=MATE +X-MATE-Bugzilla-Product=mate-applets +X-MATE-Bugzilla-Component=mateweather +X-MATE-Bugzilla-Version=@VERSION@ +X-MATE-Bugzilla-OtherBinaries=mateweather-applet-2 diff --git a/mateweather/data/org.mate.panel.applet.MateWeatherAppletFactory.service.in b/mateweather/data/org.mate.panel.applet.MateWeatherAppletFactory.service.in new file mode 100644 index 00000000..e1d0174a --- /dev/null +++ b/mateweather/data/org.mate.panel.applet.MateWeatherAppletFactory.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.mate.panel.applet.MateWeatherAppletFactory +Exec=@LIBEXECDIR@/mateweather-applet -- cgit v1.2.1