summaryrefslogtreecommitdiff
path: root/netspeed/data
diff options
context:
space:
mode:
Diffstat (limited to 'netspeed/data')
-rw-r--r--netspeed/data/Makefile.am41
-rw-r--r--netspeed/data/netspeed-menu.xml5
-rw-r--r--netspeed/data/org.mate.applets.NetspeedApplet.mate-panel-applet.in.in15
-rw-r--r--netspeed/data/org.mate.panel.applet.NetspeedAppletFactory.service.in3
-rw-r--r--netspeed/data/org.mate.panel.applet.netspeed.gschema.xml.in64
5 files changed, 128 insertions, 0 deletions
diff --git a/netspeed/data/Makefile.am b/netspeed/data/Makefile.am
new file mode 100644
index 00000000..14430adc
--- /dev/null
+++ b/netspeed/data/Makefile.am
@@ -0,0 +1,41 @@
+APPLET_LOCATION = $(libexecdir)/mate-netspeed-applet
+
+appletdir = $(datadir)/mate-panel/applets
+applet_in_files = org.mate.applets.NetspeedApplet.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|\@LOCATION\@|$(APPLET_LOCATION)|" \
+ $< > $@
+%.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
+
+xmluidir = $(datadir)/mate/ui
+xmlui_DATA = netspeed-menu.xml
+
+servicedir = $(datadir)/dbus-1/services
+service_in_files = org.mate.panel.applet.NetspeedAppletFactory.service.in
+service_DATA = $(service_in_files:.service.in=.service)
+
+org.mate.panel.applet.NetspeedAppletFactory.service: $(service_in_files)
+ $(AM_V_GEN)sed \
+ -e "s|\@LOCATION\@|$(APPLET_LOCATION)|" \
+ $< > $@
+
+netspeed_gschema_in_files = org.mate.panel.applet.netspeed.gschema.xml.in
+gsettings_SCHEMAS = $(netspeed_gschema_in_files:.xml.in=.xml)
+@INTLTOOL_XML_NOMERGE_RULE@
+@GSETTINGS_RULES@
+
+EXTRA_DIST = \
+ org.mate.applets.NetspeedApplet.mate-panel-applet.in.in \
+ $(xmlui_DATA) \
+ $(service_in_files) \
+ $(netspeed_gschema_in_files)
+
+CLEANFILES = \
+ $(gsettings_SCHEMAS) \
+ $(service_DATA) \
+ $(applet_in_files) \
+ org.mate.applets.NetspeedApplet.mate-panel-applet
+
diff --git a/netspeed/data/netspeed-menu.xml b/netspeed/data/netspeed-menu.xml
new file mode 100644
index 00000000..553936f5
--- /dev/null
+++ b/netspeed/data/netspeed-menu.xml
@@ -0,0 +1,5 @@
+<menuitem name="MateNetspeedAppletDetails" action="MateNetspeedAppletDetails" />
+<separator/>
+<menuitem name="MateNetspeedAppletProperties" action="MateNetspeedAppletProperties" />
+<menuitem name="MateNetspeedAppletHelp" action="MateNetspeedAppletHelp" />
+<menuitem name="MateNetspeedAppletAbout" action="MateNetspeedAppletAbout" />
diff --git a/netspeed/data/org.mate.applets.NetspeedApplet.mate-panel-applet.in.in b/netspeed/data/org.mate.applets.NetspeedApplet.mate-panel-applet.in.in
new file mode 100644
index 00000000..7563a229
--- /dev/null
+++ b/netspeed/data/org.mate.applets.NetspeedApplet.mate-panel-applet.in.in
@@ -0,0 +1,15 @@
+[Applet Factory]
+Id=NetspeedAppletFactory
+Location=@LOCATION@
+_Name=Netspeed Applet Factory
+_Description=Netspeed Applet
+
+[NetspeedApplet]
+_Name=Network Monitor
+_Description=Netspeed Applet
+Icon=mate-netspeed-applet
+MateComponentId=OAFIID:MATE_NetspeedApplet
+X-MATE-Bugzilla-Bugzilla=MATE
+X-MATE-Bugzilla-Product=mate-netspeed
+X-MATE-Bugzilla-Component=netspeed
+X-MATE-Bugzilla-Version=@VERSION@
diff --git a/netspeed/data/org.mate.panel.applet.NetspeedAppletFactory.service.in b/netspeed/data/org.mate.panel.applet.NetspeedAppletFactory.service.in
new file mode 100644
index 00000000..2868eec8
--- /dev/null
+++ b/netspeed/data/org.mate.panel.applet.NetspeedAppletFactory.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.mate.panel.applet.NetspeedAppletFactory
+Exec=@LOCATION@
diff --git a/netspeed/data/org.mate.panel.applet.netspeed.gschema.xml.in b/netspeed/data/org.mate.panel.applet.netspeed.gschema.xml.in
new file mode 100644
index 00000000..4723e345
--- /dev/null
+++ b/netspeed/data/org.mate.panel.applet.netspeed.gschema.xml.in
@@ -0,0 +1,64 @@
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <schema id="org.mate.panel.applet.netspeed">
+ <key name="device" type="s">
+ <default>''</default>
+ <summary>Device to monitor</summary>
+ <description>The name of the device to monitor</description>
+ </key>
+ <key name="show-sum" type="b">
+ <default>false</default>
+ <summary>Show sum speed</summary>
+ <description>If true, show sum of inbound/outbound speed instead of separated ones.</description>
+ </key>
+ <key name="show-bits" type="b">
+ <default>false</default>
+ <summary>Show bits</summary>
+ <description>If true, show speed in bits instead of bytes.</description>
+ </key>
+ <key name="show-icon" type="b">
+ <default>true</default>
+ <summary>Show icon</summary>
+ <description>If true, show main icon.</description>
+ </key>
+ <key name="short-unit" type="b">
+ <default>false</default>
+ <summary>Short unit legend</summary>
+ <description>If true, shorten unit legend to one letter: lowercase for bits / uppercase for Bytes.</description>
+ </key>
+ <key name="change-icon" type="b">
+ <default>true</default>
+ <summary>Change icon</summary>
+ <description>If true, change the icon due to selected device.</description>
+ </key>
+ <key name="auto-change-device" type="b">
+ <default>true</default>
+ <summary>Auto change device</summary>
+ <description>If true, change automatically the selected device.</description>
+ </key>
+ <key name="in-color" type="s">
+ <default>'#df0028004700'</default>
+ <summary>In color</summary>
+ <description>The color of the graph of the inbound traffic</description>
+ </key>
+ <key name="out-color" type="s">
+ <default>'#37002800df00'</default>
+ <summary>Out color</summary>
+ <description>The color of the graph of the outbound traffic</description>
+ </key>
+ <key name="up-command" type="s">
+ <default>''</default>
+ <summary>Up command</summary>
+ <description>Command the execute to activate the device</description>
+ </key>
+ <key name="down-command" type="s">
+ <default>''</default>
+ <summary>Down command</summary>
+ <description>Command the execute to shut down the device</description>
+ </key>
+ <key name="show-quality-icon" type="b">
+ <default>true</default>
+ <summary>Show signal quality icon</summary>
+ <description>If true, show signal quality icon for wireless devices.</description>
+ </key>
+ </schema>
+</schemalist>