summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-06-25 12:21:47 +0300
committermonsta <[email protected]>2015-06-25 12:21:47 +0300
commitb1b36a7d487738f5f55905a72fe0ad750abb4536 (patch)
treeeac8b8136d4904717461d973b86e69df466b1f15
parent166bb4c7242bc4c01dfb7458ac4873505b9baa1a (diff)
downloadmate-sensors-applet-b1b36a7d487738f5f55905a72fe0ad750abb4536.tar.bz2
mate-sensors-applet-b1b36a7d487738f5f55905a72fe0ad750abb4536.tar.xz
use correct help links in prefs and sensor config dialogs
- help button in prefs dialog -> sensors tab opens Sensors help page, not General Options; - help button in individual sensor config dialog opens the same page but scrolls down to Sensor Properties section.
-rw-r--r--sensors-applet/prefs-dialog.c6
-rw-r--r--sensors-applet/sensor-config-dialog.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/sensors-applet/prefs-dialog.c b/sensors-applet/prefs-dialog.c
index 9e3376a..002a668 100644
--- a/sensors-applet/prefs-dialog.c
+++ b/sensors-applet/prefs-dialog.c
@@ -64,11 +64,11 @@ 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("help:mate-sensors-applet/sensors-applet-general-options",
+ uri = g_strdup_printf("help:mate-sensors-applet/%s",
((current_page == 0) ?
- "general_options" :
+ "sensors-applet-general-options" :
((current_page == 1) ?
- "sensors" :
+ "sensors-applet-sensors" :
NULL)));
gtk_show_uri(NULL, uri, gtk_get_current_event_time(), &error);
g_free(uri);
diff --git a/sensors-applet/sensor-config-dialog.c b/sensors-applet/sensor-config-dialog.c
index e8ddc08..cc09305 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,
- "help:mate-sensors-applet/sensors-applet-sensor-config-dialog",
+ "help:mate-sensors-applet/sensors-applet-sensors#sensors-applet-sensor-config-dialog",
gtk_get_current_event_time(),
&error);