From f61476bf3632cd9af624a1832476cadc89b64411 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 29 Aug 2020 11:28:43 +0200 Subject: timerapplet: Use common subdirs - src, data --- timerapplet/data/Makefile.am | 45 ++++ ...ets.TimerApplet.mate-panel-applet.desktop.in.in | 11 + ...mate.panel.applet.TimerAppletFactory.service.in | 3 + .../org.mate.panel.applet.timer.gschema.xml.in | 20 ++ timerapplet/data/timerapplet-preferences.ui | 235 +++++++++++++++++++++ .../data/timerapplet-resources.gresource.xml | 6 + 6 files changed, 320 insertions(+) create mode 100644 timerapplet/data/Makefile.am create mode 100644 timerapplet/data/org.mate.applets.TimerApplet.mate-panel-applet.desktop.in.in create mode 100644 timerapplet/data/org.mate.panel.applet.TimerAppletFactory.service.in create mode 100644 timerapplet/data/org.mate.panel.applet.timer.gschema.xml.in create mode 100644 timerapplet/data/timerapplet-preferences.ui create mode 100644 timerapplet/data/timerapplet-resources.gresource.xml (limited to 'timerapplet/data') diff --git a/timerapplet/data/Makefile.am b/timerapplet/data/Makefile.am new file mode 100644 index 00000000..2c034da3 --- /dev/null +++ b/timerapplet/data/Makefile.am @@ -0,0 +1,45 @@ +NULL = + +APPLET_LOCATION = $(libexecdir)/timer-applet + +appletsdir = $(datadir)/mate-panel/applets +applets_in_files = org.mate.applets.TimerApplet.mate-panel-applet.desktop.in +applets_DATA = $(applets_in_files:.mate-panel-applet.desktop.in=.mate-panel-applet) + +$(applets_in_files): $(applets_in_files).in Makefile + $(AM_V_GEN)sed \ + -e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \ + $< > $@ +$(applets_DATA): $(applets_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.TimerAppletFactory.service.in +service_DATA = $(service_in_files:.service.in=.service) + +org.mate.panel.applet.TimerAppletFactory.service: $(service_in_files) + $(AM_V_GEN)sed \ + -e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \ + $< > $@ + +timer_gschema_in_files = org.mate.panel.applet.timer.gschema.xml.in +gsettings_SCHEMAS = $(timer_gschema_in_files:.xml.in=.xml) +@GSETTINGS_RULES@ + +EXTRA_DIST = \ + $(applets_in_files).in \ + $(service_in_files) \ + $(timer_gschema_in_files) \ + timerapplet-preferences.ui \ + timerapplet-resources.gresource.xml \ + $(NULL) + +CLEANFILES = \ + $(applets_DATA) \ + $(applets_in_files) \ + $(service_DATA) \ + $(gsettings_SCHEMAS) \ + *.gschema.valid \ + $(NULL) + +-include $(top_srcdir)/git.mk diff --git a/timerapplet/data/org.mate.applets.TimerApplet.mate-panel-applet.desktop.in.in b/timerapplet/data/org.mate.applets.TimerApplet.mate-panel-applet.desktop.in.in new file mode 100644 index 00000000..a111eb28 --- /dev/null +++ b/timerapplet/data/org.mate.applets.TimerApplet.mate-panel-applet.desktop.in.in @@ -0,0 +1,11 @@ +[Applet Factory] +Id=TimerAppletFactory +Location=@LOCATION@ +Name=Timer Factory +Description=Timer Factory + +[TimerApplet] +Name=Timer +Description=Start a timer and receive a notification when it is finished +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=mate-panel-clock diff --git a/timerapplet/data/org.mate.panel.applet.TimerAppletFactory.service.in b/timerapplet/data/org.mate.panel.applet.TimerAppletFactory.service.in new file mode 100644 index 00000000..b8cd68cc --- /dev/null +++ b/timerapplet/data/org.mate.panel.applet.TimerAppletFactory.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.mate.panel.applet.TimerAppletFactory +Exec=@LOCATION@ diff --git a/timerapplet/data/org.mate.panel.applet.timer.gschema.xml.in b/timerapplet/data/org.mate.panel.applet.timer.gschema.xml.in new file mode 100644 index 00000000..1201c8a6 --- /dev/null +++ b/timerapplet/data/org.mate.panel.applet.timer.gschema.xml.in @@ -0,0 +1,20 @@ + + + + 'Timer' + Name of timer + + + 10 + Duration of timer in seconds + + + true + Show notification popup when timer finish + + + false + Show dialog window when timer finish + + + diff --git a/timerapplet/data/timerapplet-preferences.ui b/timerapplet/data/timerapplet-preferences.ui new file mode 100644 index 00000000..04e13e7d --- /dev/null +++ b/timerapplet/data/timerapplet-preferences.ui @@ -0,0 +1,235 @@ + + + + + + 23 + 1 + 10 + + + True + False + window-close + + + 59 + 1 + 10 + + + 59 + 1 + 10 + + + False + 12 + Timer Applet Preferences + dialog + + + False + vertical + 2 + + + False + end + + + _Close + True + True + True + image1 + True + True + + + True + True + 0 + + + + + False + False + 0 + + + + + True + False + vertical + 6 + + + True + False + 6 + 12 + + + True + False + start + _Name: + True + name_entry + + + 0 + 0 + + + + + True + False + start + _Hours: + True + hours_spinbutton + + + 0 + 1 + + + + + True + False + start + _Minutes: + True + minutes_spinbutton + + + 0 + 2 + + + + + True + False + start + _Seconds: + True + seconds_spinbutton + + + 0 + 3 + + + + + True + True + True + + + 1 + 0 + + + + + True + True + True + hours_adjustment + + + + 1 + 1 + + + + + True + True + True + minutes_adjustment + + + + 1 + 2 + + + + + True + True + True + seconds_adjustment + + + + 1 + 3 + + + + + False + True + 0 + + + + + Show notification _popup + True + True + False + start + True + True + + + False + True + 1 + + + + + Show _dialog + True + True + False + start + True + True + + + False + True + 2 + + + + + False + True + 1 + + + + + + button1 + + + + + + diff --git a/timerapplet/data/timerapplet-resources.gresource.xml b/timerapplet/data/timerapplet-resources.gresource.xml new file mode 100644 index 00000000..71b7915a --- /dev/null +++ b/timerapplet/data/timerapplet-resources.gresource.xml @@ -0,0 +1,6 @@ + + + + timerapplet-preferences.ui + + -- cgit v1.2.1