[Xfce4-commits] [apps/xfce4-screensaver] 140/425: Fix help button in preferences dialog.
noreply at xfce.org
noreply at xfce.org
Mon Oct 15 01:49:47 CEST 2018
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/xfce4-screensaver.
commit 0c77cd519d857a1b460811acef17dc84cc9bac83
Author: infirit <infirit at gmail.com>
Date: Fri Feb 21 09:17:42 2014 +0100
Fix help button in preferences dialog.
---
src/mate-screensaver-preferences.c | 39 +++-----------------------------------
1 file 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
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list