diff options
author | raveit65 <[email protected]> | 2015-06-24 01:07:41 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2015-06-24 01:07:41 +0200 |
commit | 4690850d02dfd6b537d8c3b3dbb25269192c3815 (patch) | |
tree | 569ad41333ab4fd42cec879524e37c36fc0ae381 | |
parent | 4de78c1c5ecce060fe26b62c2b3328c52f0d578e (diff) | |
download | mate-sensors-applet-4690850d02dfd6b537d8c3b3dbb25269192c3815.tar.bz2 mate-sensors-applet-4690850d02dfd6b537d8c3b3dbb25269192c3815.tar.xz |
enable help
-rw-r--r-- | help/C/index.docbook | 77 | ||||
-rw-r--r-- | sensors-applet/prefs-dialog.c | 2 | ||||
-rw-r--r-- | sensors-applet/sensor-config-dialog.c | 2 | ||||
-rw-r--r-- | sensors-applet/sensors-applet.c | 2 |
4 files changed, 11 insertions, 72 deletions
diff --git a/help/C/index.docbook b/help/C/index.docbook index 3ae140e..51691ae 100644 --- a/help/C/index.docbook +++ b/help/C/index.docbook @@ -546,17 +546,17 @@ Alarms for individual sensors must also be enabled. </term> <listitem> <para> - The program <command>matedialog</command> can be used to create + The program <command>zenity</command> can be used to create dialog boxes to be displayed on the users current display, and can thus be used to create pop-up style notifications that the alarm has occurred. - <screen><userinput><command>matedialog --warning --title="Sensor Alarm" --text="Sensor Alarm occurred"</command></userinput></screen> + <screen><userinput><command>zenity --warning --title="Sensor Alarm" --text="Sensor Alarm occurred"</command></userinput></screen> - For more information regarding MateDialog please - consult the MateDialog <ulink type="help" - url="help:matedialog">documentation</ulink>. + For more information regarding Zenity please + consult the Zenity <ulink type="help" + url="help:zenity">documentation</ulink>. </para> </listitem> </varlistentry> @@ -571,9 +571,9 @@ Alarms for individual sensors must also be enabled. Multiple commands can be executed one after the other using the "&&" construct to separate them. To play a sound and pop-up a dialog via - MateDialog the follow command can be used: + Zenity the follow command can be used: - <screen><userinput><command>esdplay /usr/share/sounds/gnibbles/gobble.wav && matedialog --warning --title="Sensor Alarm" --text="Sensor Alarm occurred"</command></userinput></screen> + <screen><userinput><command>esdplay /usr/share/sounds/gnibbles/gobble.wav && zenity --warning --title="Sensor Alarm" --text="Sensor Alarm occurred"</command></userinput></screen> </para> </listitem> @@ -609,67 +609,7 @@ Alarms for individual sensors must also be enabled. </sect2> </sect1> - <sect1> - <title>Advanced Options</title> - <para>There are a number of advanced options which can be set to - customize the display of sensors within the panel, which are set - using the MateConf system.</para> - <variablelist> - <varlistentry> - <term><guilabel>Font Size</guilabel></term> - <listitem> - <para>The font size for labels and values is normally - derived from the standard Application Font size of the MATE - Desktop, however this can be overridden. This is done by - setting the value of the parameter - - <emphasis>/apps/sensors-applet/font-size</emphasis> - - within the user's MateConf database. This can be achieved by - the following command, where the font size is specified as - the last parameter, and in this case is set to - <emphasis>10</emphasis>: - - <!-- CAN"T HAVE ANY LINE BREAKS IN COMMAND --> - <screen><userinput><command>mateconftool-2 -s /apps/sensors-applet/font-size -t int 10</command></userinput></screen> - </para> - - <note> - <para>To reset the value so that the default font size is - not overridden, a font size of <emphasis>0</emphasis> - should be set. - </para> - </note> - - </listitem> - </varlistentry> - <varlistentry> - <term><guilabel>Hide Units</guilabel></term> - <listitem> - <para>The units for sensor values can also be hidden if - desired by setting the boolean value - <emphasis>/apps/sensors-applet/hide-units</emphasis> - - within the user's MateConf database. This can be achieved by - the following command, where the value is specified as - either <emphasis>true</emphasis> or - <emphasis>false</emphasis> and is specified as the last - parameter. In this case is the units will be hidden (the - value is set to <emphasis>true</emphasis>): - <!-- CAN"T HAVE ANY LINE BREAKS IN COMMAND --> - <screen><userinput><command>mateconftool-2 -s /apps/sensors-applet/hide-units -t bool true</command></userinput></screen> - </para> - </listitem> - </varlistentry> - </variablelist> - <note> - <para>These values can also be set using the <ulink type="help" - url="help:mateconf-editor">Configuration Editor</ulink> - application. - </para> - </note> - </sect1> <!-- ============= Bugs ================================== --> <!-- This section is optional and is commented out by default. You can use it to describe known bugs and limitations of the @@ -729,5 +669,4 @@ Alarms for individual sensors must also be enabled. <!-- Local IspellDict: english --> <!-- LocalWords: hddtemp filesystem proc lm README Inspiron windtunnel --> <!-- LocalWords: ibm ACPI sysfs PowerPC adt Omnibook NVIDIA --> -<!-- LocalWords: libNVCtrl libsensors nvidia esdplay aplay ALSA matedialog --> -<!-- LocalWords: acpi iMac Windfarm nvidia mateconftool MateConf bool --> +<!-- LocalWords: libNVCtrl libsensors nvidia esdplay aplay ALSA zenity --> diff --git a/sensors-applet/prefs-dialog.c b/sensors-applet/prefs-dialog.c index 72fc277..c7c2204 100644 --- a/sensors-applet/prefs-dialog.c +++ b/sensors-applet/prefs-dialog.c @@ -64,7 +64,7 @@ void prefs_dialog_response(GtkDialog *prefs_dialog, case GTK_RESPONSE_HELP: g_debug("loading help in prefs"); current_page = gtk_notebook_get_current_page(sensors_applet->prefs_dialog->notebook); - uri = g_strdup_printf("http://wiki.mate-desktop.org/docs:mate-sensors-applet#%s", + uri = g_strdup_printf("help:mate-sensors-applet#%s", ((current_page == 0) ? "general_options" : ((current_page == 1) ? diff --git a/sensors-applet/sensor-config-dialog.c b/sensors-applet/sensor-config-dialog.c index fa05c9f..e106481 100644 --- a/sensors-applet/sensor-config-dialog.c +++ b/sensors-applet/sensor-config-dialog.c @@ -80,7 +80,7 @@ static void sensor_config_dialog_response(GtkDialog *dialog, case GTK_RESPONSE_HELP: g_debug("loading help in config dialog"); gtk_show_uri(NULL, - "http://wiki.mate-desktop.org/docs:mate-sensors-applet", + "help:mate-sensors-applet", gtk_get_current_event_time(), &error); diff --git a/sensors-applet/sensors-applet.c b/sensors-applet/sensors-applet.c index 3081163..bc62f35 100644 --- a/sensors-applet/sensors-applet.c +++ b/sensors-applet/sensors-applet.c @@ -78,7 +78,7 @@ static void help_cb(GtkAction *action, GError *error = NULL; - gtk_show_uri(NULL, "http://wiki.mate-desktop.org/docs:mate-sensors-applet", + gtk_show_uri(NULL, "help:mate-sensors-applet", gtk_get_current_event_time(), &error); |