From 8aabf4f0797f7cb4a56b194b66b7c41537fcbc69 Mon Sep 17 00:00:00 2001 From: monsta Date: Fri, 11 Dec 2015 13:43:46 +0300 Subject: merge netspeed applet from mate-netspeed repo --- netspeed/data/Makefile.am | 41 ++++++++++++++ netspeed/data/netspeed-menu.xml | 5 ++ ....applets.NetspeedApplet.mate-panel-applet.in.in | 15 +++++ ...e.panel.applet.NetspeedAppletFactory.service.in | 3 + .../org.mate.panel.applet.netspeed.gschema.xml.in | 64 ++++++++++++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 netspeed/data/Makefile.am create mode 100644 netspeed/data/netspeed-menu.xml create mode 100644 netspeed/data/org.mate.applets.NetspeedApplet.mate-panel-applet.in.in create mode 100644 netspeed/data/org.mate.panel.applet.NetspeedAppletFactory.service.in create mode 100644 netspeed/data/org.mate.panel.applet.netspeed.gschema.xml.in (limited to 'netspeed/data') 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 @@ + + + + + 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 @@ + + + + '' + Device to monitor + The name of the device to monitor + + + false + Show sum speed + If true, show sum of inbound/outbound speed instead of separated ones. + + + false + Show bits + If true, show speed in bits instead of bytes. + + + true + Show icon + If true, show main icon. + + + false + Short unit legend + If true, shorten unit legend to one letter: lowercase for bits / uppercase for Bytes. + + + true + Change icon + If true, change the icon due to selected device. + + + true + Auto change device + If true, change automatically the selected device. + + + '#df0028004700' + In color + The color of the graph of the inbound traffic + + + '#37002800df00' + Out color + The color of the graph of the outbound traffic + + + '' + Up command + Command the execute to activate the device + + + '' + Down command + Command the execute to shut down the device + + + true + Show signal quality icon + If true, show signal quality icon for wireless devices. + + + -- cgit v1.2.1