From 4690850d02dfd6b537d8c3b3dbb25269192c3815 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 24 Jun 2015 01:07:41 +0200 Subject: enable help --- help/C/index.docbook | 77 ++++------------------------------- sensors-applet/prefs-dialog.c | 2 +- sensors-applet/sensor-config-dialog.c | 2 +- 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. - The program matedialog can be used to create + The program zenity 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. - matedialog --warning --title="Sensor Alarm" --text="Sensor Alarm occurred" + zenity --warning --title="Sensor Alarm" --text="Sensor Alarm occurred" - For more information regarding MateDialog please - consult the MateDialog documentation. + For more information regarding Zenity please + consult the Zenity documentation. @@ -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: - esdplay /usr/share/sounds/gnibbles/gobble.wav && matedialog --warning --title="Sensor Alarm" --text="Sensor Alarm occurred" + esdplay /usr/share/sounds/gnibbles/gobble.wav && zenity --warning --title="Sensor Alarm" --text="Sensor Alarm occurred" @@ -609,67 +609,7 @@ Alarms for individual sensors must also be enabled. - - Advanced Options - 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. - - - Font Size - - 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 - - /apps/sensors-applet/font-size - - 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 - 10: - - - mateconftool-2 -s /apps/sensors-applet/font-size -t int 10 - - - - To reset the value so that the default font size is - not overridden, a font size of 0 - should be set. - - - - - - - Hide Units - - The units for sensor values can also be hidden if - desired by setting the boolean value - /apps/sensors-applet/hide-units - - within the user's MateConf database. This can be achieved by - the following command, where the value is specified as - either true or - false and is specified as the last - parameter. In this case is the units will be hidden (the - value is set to true): - - mateconftool-2 -s /apps/sensors-applet/hide-units -t bool true - - - - - - These values can also be set using the Configuration Editor - application. - - - - - + 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); -- cgit v1.2.1