summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-02-21 09:17:42 +0100
committerinfirit <[email protected]>2014-02-21 09:20:25 +0100
commit0c77cd519d857a1b460811acef17dc84cc9bac83 (patch)
treefe2bb403210225aabbc7d0ca22adc2ff990f5a2a /src
parent78f0cd08479e8576ba75c17c767df6f79b512932 (diff)
downloadmate-screensaver-0c77cd519d857a1b460811acef17dc84cc9bac83.tar.bz2
mate-screensaver-0c77cd519d857a1b460811acef17dc84cc9bac83.tar.xz
Fix help button in preferences dialog.
Diffstat (limited to 'src')
-rw-r--r--src/mate-screensaver-preferences.c39
1 files changed, 3 insertions, 36 deletions
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index 295cbdc..8259ab4 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -384,41 +384,10 @@ preview_set_theme (GtkWidget *widget,
static void
help_display (void)
{
- GError *error = NULL;
- char *command;
- const char *lang;
- char *uri = NULL;
- GdkScreen *gscreen;
- int i;
+ GError *error;
- const char * const * langs = g_get_language_names ();
-
- for (i = 0; langs[i] != NULL; i++)
- {
- lang = langs[i];
- if (strchr (lang, '.'))
- {
- continue;
- }
-
- uri = g_build_filename (DATADIR,
- "/mate/help/user-guide/",
- lang,
- "/user-guide.xml",
- NULL);
-
- if (g_file_test (uri, G_FILE_TEST_EXISTS))
- {
- break;
- }
- }
-
- command = g_strconcat ("gvfs-open help://",
- uri,
- "?prefs-screensaver",
- NULL);
- gscreen = gdk_screen_get_default ();
- gdk_spawn_command_line_on_screen (gscreen, command, &error);
+ error = NULL;
+ gtk_show_uri (NULL, "help:mate-user-guide/prefs-screensaver", GDK_CURRENT_TIME, &error);
if (error != NULL)
{
@@ -433,8 +402,6 @@ help_display (void)
g_error_free (error);
}
- g_free (command);
- g_free (uri);
}
static void