From 1ee4ea5cc7e554b481da4e052e1c7b46d03b6b5b Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 1 Aug 2020 13:50:38 +0200 Subject: command: Use common subdirs - src, data --- command/data/Makefile.am | 42 +++++ command/data/command-preferences.ui | 191 +++++++++++++++++++++ command/data/command-resources.gresource.xml | 6 + ...s.CommandApplet.mate-panel-applet.desktop.in.in | 11 ++ ...te.panel.applet.CommandAppletFactory.service.in | 3 + .../org.mate.panel.applet.command.gschema.xml.in | 24 +++ 6 files changed, 277 insertions(+) create mode 100644 command/data/Makefile.am create mode 100644 command/data/command-preferences.ui create mode 100644 command/data/command-resources.gresource.xml create mode 100644 command/data/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in create mode 100644 command/data/org.mate.panel.applet.CommandAppletFactory.service.in create mode 100644 command/data/org.mate.panel.applet.command.gschema.xml.in (limited to 'command/data') diff --git a/command/data/Makefile.am b/command/data/Makefile.am new file mode 100644 index 00000000..b94e9523 --- /dev/null +++ b/command/data/Makefile.am @@ -0,0 +1,42 @@ +APPLET_LOCATION = $(libexecdir)/command-applet + +appletsdir = $(datadir)/mate-panel/applets +applets_in_files = org.mate.applets.CommandApplet.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.CommandAppletFactory.service.in +service_DATA = $(service_in_files:.service.in=.service) + +org.mate.panel.applet.CommandAppletFactory.service: $(service_in_files) + $(AM_V_GEN)sed \ + -e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \ + $< > $@ + +command_gschema_in_files = org.mate.panel.applet.command.gschema.xml.in +gsettings_SCHEMAS = $(command_gschema_in_files:.xml.in=.xml) +@GSETTINGS_RULES@ + +EXTRA_DIST = \ + $(applets_in_files).in \ + $(service_in_files) \ + $(command_gschema_in_files) \ + command-preferences.ui \ + command-resources.gresource.xml + +CLEANFILES = \ + $(applets_DATA) \ + $(applets_in_files) \ + $(service_DATA) \ + $(gsettings_SCHEMAS) \ + *.gschema.valid + +-include $(top_srcdir)/git.mk diff --git a/command/data/command-preferences.ui b/command/data/command-preferences.ui new file mode 100644 index 00000000..9a2d5435 --- /dev/null +++ b/command/data/command-preferences.ui @@ -0,0 +1,191 @@ + + + + + + True + False + window-close + + + 1 + 86400 + 1 + 10 + + + 1 + 100 + 1 + 10 + + + False + 12 + Command Applet Preferences + utilities-terminal + 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 + C_ommand: + True + command_entry + + + 0 + 0 + + + + + True + False + start + _Interval (seconds): + True + interval_spinbutton + + + 0 + 1 + + + + + True + False + start + Maximum _width (chars): + True + width_spinbutton + + + 0 + 2 + + + + + True + True + True + + + + 1 + 0 + + + + + True + True + True + interval_adjustment + + + + 1 + 1 + + + + + True + True + True + width_adjustment + + + + 1 + 2 + + + + + False + True + 0 + + + + + _Show icon + True + True + False + start + True + True + + + False + True + 1 + + + + + False + True + 1 + + + + + + button1 + + + + + + diff --git a/command/data/command-resources.gresource.xml b/command/data/command-resources.gresource.xml new file mode 100644 index 00000000..72f8ac4c --- /dev/null +++ b/command/data/command-resources.gresource.xml @@ -0,0 +1,6 @@ + + + + command-preferences.ui + + diff --git a/command/data/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in b/command/data/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in new file mode 100644 index 00000000..04f76f4a --- /dev/null +++ b/command/data/org.mate.applets.CommandApplet.mate-panel-applet.desktop.in.in @@ -0,0 +1,11 @@ +[Applet Factory] +Id=CommandAppletFactory +Location=@LOCATION@ +Name=Command Factory +Description=Command Factory + +[CommandApplet] +Name=Command +Description=Shows the output of a command +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! +Icon=utilities-terminal diff --git a/command/data/org.mate.panel.applet.CommandAppletFactory.service.in b/command/data/org.mate.panel.applet.CommandAppletFactory.service.in new file mode 100644 index 00000000..a4e04846 --- /dev/null +++ b/command/data/org.mate.panel.applet.CommandAppletFactory.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.mate.panel.applet.CommandAppletFactory +Exec=@LOCATION@ diff --git a/command/data/org.mate.panel.applet.command.gschema.xml.in b/command/data/org.mate.panel.applet.command.gschema.xml.in new file mode 100644 index 00000000..b352a21b --- /dev/null +++ b/command/data/org.mate.panel.applet.command.gschema.xml.in @@ -0,0 +1,24 @@ + + + + 'date +%T' + Command to execute + Command/script to execute to get the output + + + 1 + Interval for the command + Interval to execute the command (in seconds) + + + 60 + Width of output + Number of characters to display + + + false + Show icon + If applet icon is shown or not + + + -- cgit v1.2.1