projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a dialog box for the MEANS command
[pspp]
/
src
/
ui
/
gui
/
help-menu.c
diff --git
a/src/ui/gui/help-menu.c
b/src/ui/gui/help-menu.c
index f746441c231ebc827f63754c129a455ee763e34b..9d1ccf8246297243ef4a58c210dadbf1e086f22f 100644
(file)
--- a/
src/ui/gui/help-menu.c
+++ b/
src/ui/gui/help-menu.c
@@
-1,5
+1,5
@@
/* PSPPIRE - a graphical user interface for PSPP.
/* PSPPIRE - a graphical user interface for PSPP.
- Copyright (C) 2006, 2007, 2010 Free Software Foundation
+ Copyright (C) 2006, 2007, 2010
, 2011, 2012
Free Software Foundation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-92,12
+92,16
@@
online_help (const char *page)
GError *err = NULL;
gchar *cmd = NULL;
GError *err = NULL;
gchar *cmd = NULL;
+ gchar *argv[3] = { "yelp", 0, 0};
+
if (page == NULL)
if (page == NULL)
-
cmd = g_strdup_printf ("yelp
file://%s", relocate (DOCDIR "/pspp.xml"));
+
argv[1] = g_strdup_printf ("
file://%s", relocate (DOCDIR "/pspp.xml"));
else
else
-
cmd = g_strdup_printf ("yelp file://%s\\
#%s", relocate (DOCDIR "/pspp.xml"), page);
+
argv[1] = g_strdup_printf ("file://%s
#%s", relocate (DOCDIR "/pspp.xml"), page);
- if ( ! g_spawn_command_line_async (cmd, &err) )
+ if (! g_spawn_async (NULL, argv,
+ NULL, G_SPAWN_SEARCH_PATH,
+ NULL, NULL, NULL, &err))
{
msg (ME, _("Cannot open reference manual: %s. The PSPP user manual is "
"also available at %s"),
{
msg (ME, _("Cannot open reference manual: %s. The PSPP user manual is "
"also available at %s"),