summaryrefslogtreecommitdiff
path: root/cpufreq/data
diff options
context:
space:
mode:
Diffstat (limited to 'cpufreq/data')
-rw-r--r--cpufreq/data/Makefile.am46
-rw-r--r--cpufreq/data/cpufreq-applet-menu.xml4
-rw-r--r--cpufreq/data/cpufreq-preferences.ui292
-rw-r--r--cpufreq/data/cpufreq-resources.gresource.xml7
-rw-r--r--cpufreq/data/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in16
-rw-r--r--cpufreq/data/org.mate.panel.applet.CPUFreqAppletFactory.service.in3
-rw-r--r--cpufreq/data/org.mate.panel.applet.cpufreq.gschema.xml.in20
7 files changed, 388 insertions, 0 deletions
diff --git a/cpufreq/data/Makefile.am b/cpufreq/data/Makefile.am
new file mode 100644
index 00000000..b08d6345
--- /dev/null
+++ b/cpufreq/data/Makefile.am
@@ -0,0 +1,46 @@
+NULL =
+
+cpufreq_gschema_in_files = org.mate.panel.applet.cpufreq.gschema.xml.in
+gsettings_SCHEMAS = $(cpufreq_gschema_in_files:.xml.in=.xml)
+@GSETTINGS_RULES@
+
+appletdir = $(datadir)/mate-panel/applets
+applet_in_files = org.mate.applets.CPUFreqApplet.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.CPUFreqAppletFactory.service.in
+service_DATA = $(service_in_files:.service.in=.service)
+
+org.mate.panel.applet.CPUFreqAppletFactory.service: $(service_in_files)
+ $(AM_V_GEN)sed \
+ -e "s|\@LIBEXECDIR\@|$(libexecdir)|" \
+ $< > $@
+
+CLEANFILES = \
+ $(applet_DATA) \
+ $(applet_in_files) \
+ $(service_DATA) \
+ $(gsettings_SCHEMAS) \
+ *.gschema.valid \
+ $(NULL)
+
+EXTRA_DIST = \
+ $(applet_in_files).in \
+ $(service_in_files) \
+ $(cpufreq_gschema_in_files) \
+ cpufreq-applet-menu.xml \
+ cpufreq-preferences.ui \
+ cpufreq-resources.gresource.xml \
+ $(NULL)
+
+-include $(top_srcdir)/git.mk
diff --git a/cpufreq/data/cpufreq-applet-menu.xml b/cpufreq/data/cpufreq-applet-menu.xml
new file mode 100644
index 00000000..98375818
--- /dev/null
+++ b/cpufreq/data/cpufreq-applet-menu.xml
@@ -0,0 +1,4 @@
+<menuitem name="CPUFreq Preferences Item" action="CPUFreqAppletPreferences" />
+<menuitem name="CPUFreq Help Item" action="CPUFreqAppletHelp" />
+<menuitem name="CPUFreq About Item" action="CPUFreqAppletAbout" />
+
diff --git a/cpufreq/data/cpufreq-preferences.ui b/cpufreq/data/cpufreq-preferences.ui
new file mode 100644
index 00000000..f155f73e
--- /dev/null
+++ b/cpufreq/data/cpufreq-preferences.ui
@@ -0,0 +1,292 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.36.0 -->
+<interface>
+ <requires lib="gtk+" version="3.22"/>
+ <object class="GtkImage" id="close_img">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="icon_name">window-close</property>
+ </object>
+ <object class="GtkImage" id="help_img">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="icon_name">help-browser</property>
+ </object>
+ <object class="GtkDialog" id="prefs_dialog">
+ <property name="can_focus">False</property>
+ <property name="border_width">5</property>
+ <property name="title" translatable="yes">CPU Frequency Monitor Preferences</property>
+ <property name="type_hint">dialog</property>
+ <child internal-child="vbox">
+ <object class="GtkBox">
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">2</property>
+ <child internal-child="action_area">
+ <object class="GtkButtonBox">
+ <property name="can_focus">False</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="button2">
+ <property name="label" translatable="yes">_Help</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="image">help_img</property>
+ <property name="use_underline">True</property>
+ <property name="always_show_image">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="button1">
+ <property name="label" translatable="yes">_Close</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="image">close_img</property>
+ <property name="use_underline">True</property>
+ <property name="always_show_image">True</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="border_width">5</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">18</property>
+ <child>
+ <object class="GtkFrame" id="monitor_settings_frame">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_top">6</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkLabel" id="label14">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="label" translatable="yes">_Monitored CPU:</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">prefs_cpu_number</property>
+ <property name="xalign">0</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkComboBox" id="prefs_cpu_number">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Monitor Settings</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFrame">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_top">6</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkLabel" id="label15">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="label" translatable="yes">_Appearance:</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">prefs_show_mode</property>
+ <property name="xalign">0</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkComboBox" id="prefs_show_mode">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="prefs_show_freq">
+ <property name="label" translatable="yes">Show CPU frequency as _frequency</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="use_underline">True</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="prefs_show_unit">
+ <property name="label" translatable="yes">Show frequency _units</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="margin_start">18</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="prefs_show_perc">
+ <property name="label" translatable="yes">Show CPU frequency as _percentage</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="halign">start</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">prefs_show_freq</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Display Settings</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-11">button2</action-widget>
+ <action-widget response="-7">button1</action-widget>
+ </action-widgets>
+ <child type="titlebar">
+ <placeholder/>
+ </child>
+ </object>
+ <object class="GtkSizeGroup">
+ <widgets>
+ <widget name="label14"/>
+ <widget name="label15"/>
+ </widgets>
+ </object>
+</interface>
diff --git a/cpufreq/data/cpufreq-resources.gresource.xml b/cpufreq/data/cpufreq-resources.gresource.xml
new file mode 100644
index 00000000..6ae8945a
--- /dev/null
+++ b/cpufreq/data/cpufreq-resources.gresource.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/mate/mate-applets/cpufreq">
+ <file compressed="true">cpufreq-applet-menu.xml</file>
+ <file compressed="true">cpufreq-preferences.ui</file>
+ </gresource>
+</gresources>
diff --git a/cpufreq/data/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in b/cpufreq/data/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in
new file mode 100644
index 00000000..168c6317
--- /dev/null
+++ b/cpufreq/data/org.mate.applets.CPUFreqApplet.mate-panel-applet.desktop.in.in
@@ -0,0 +1,16 @@
+[Applet Factory]
+Id=CPUFreqAppletFactory
+Location=@LIBEXECDIR@/mate-cpufreq-applet
+Name=CPU Frequency Scaling Monitor
+Description=Monitor the CPU Frequency Scaling
+
+[CPUFreqApplet]
+Name=CPU Frequency Scaling Monitor
+Description=Monitor the CPU Frequency Scaling
+# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
+Icon=mate-cpu-frequency-applet
+MateComponentId=OAFIID:MATE_CPUFreqApplet
+X-MATE-Bugzilla-Bugzilla=MATE
+X-MATE-Bugzilla-Product=mate-applets
+X-MATE-Bugzilla-Component=cpufreq
+X-MATE-Bugzilla-Version=@VERSION@
diff --git a/cpufreq/data/org.mate.panel.applet.CPUFreqAppletFactory.service.in b/cpufreq/data/org.mate.panel.applet.CPUFreqAppletFactory.service.in
new file mode 100644
index 00000000..a04c672b
--- /dev/null
+++ b/cpufreq/data/org.mate.panel.applet.CPUFreqAppletFactory.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.mate.panel.applet.CPUFreqAppletFactory
+Exec=@LIBEXECDIR@/mate-cpufreq-applet
diff --git a/cpufreq/data/org.mate.panel.applet.cpufreq.gschema.xml.in b/cpufreq/data/org.mate.panel.applet.cpufreq.gschema.xml.in
new file mode 100644
index 00000000..694a75f7
--- /dev/null
+++ b/cpufreq/data/org.mate.panel.applet.cpufreq.gschema.xml.in
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<schemalist gettext-domain="@GETTEXT_PACKAGE@">
+ <schema id="org.mate.panel.applet.cpufreq">
+ <key name="cpu" type="i">
+ <default>0</default>
+ <summary>CPU to Monitor</summary>
+ <description>Set the CPU to monitor. In a single processor system you don't have to change it.</description>
+ </key>
+ <key name="show-mode" type="i">
+ <default>2</default>
+ <summary>Mode to show CPU usage</summary>
+ <description>A 0 value means to show the applet in graphic mode (pixmap only), 1 to show the applet in text mode (not to show the pixmap) and 2 to show the applet in graphic and text mode.</description>
+ </key>
+ <key name="show-text-mode" type="i">
+ <default>1</default>
+ <summary>The type of text to display (if the text is enabled).</summary>
+ <description>A 0 value means to show CPU frequency, 1 to show frequency and units, and 2 to show percentage instead of frequency.</description>
+ </key>
+ </schema>
+</schemalist>