projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added menuitem to display the PSPP reference manual.
[pspp-builds.git]
/
src
/
ui
/
gui
/
helper.c
diff --git
a/src/ui/gui/helper.c
b/src/ui/gui/helper.c
index 75b88f1d8ba5f63d972b9a21304af3fedea7c50d..7deb4cbb0cf0736aa3082f48fd0c609469d965b2 100644
(file)
--- a/
src/ui/gui/helper.c
+++ b/
src/ui/gui/helper.c
@@
-1,6
+1,8
@@
#include <config.h>
#include <config.h>
+#include <glib.h>
#include "helper.h"
#include "helper.h"
+#include "message-dialog.h"
#include <data/data-in.h>
#include <data/data-out.h>
#include <libpspp/message.h>
#include <data/data-in.h>
#include <data/data-out.h>
#include <libpspp/message.h>
@@
-11,6
+13,9
@@
#include <string.h>
#include <data/settings.h>
#include <string.h>
#include <data/settings.h>
+
+#include <gettext.h>
+
/* Formats a value according to FORMAT
The returned string must be freed when no longer required */
gchar *
/* Formats a value according to FORMAT
The returned string must be freed when no longer required */
gchar *
@@
-113,3
+118,14
@@
connect_help (GladeXML *xml)
}
}
+
+void
+reference_manual (GtkMenuItem *menu, gpointer data)
+{
+ GError *err = NULL;
+ if ( ! g_spawn_command_line_async ("yelp info:pspp", &err) )
+ {
+ msg (ME, _("Cannot open reference manual: %s"), err->message);
+ }
+ g_clear_error (&err);
+}