Use libDesktop to open help contents

This commit is contained in:
Pierre Pronchery 2012-06-22 22:42:11 +00:00
parent 12f0918a49
commit 69f928df71

View File

@ -27,15 +27,8 @@
#include "../config.h" #include "../config.h"
#define _(string) gettext(string) #define _(string) gettext(string)
/* constants */ /* constants */
#ifndef PREFIX #define PROGNAME "surfer"
# define PREFIX "/usr/local"
#endif
#ifndef DATADIR
# define DATADIR PREFIX "/share"
#endif
/* window */ /* window */
@ -309,13 +302,7 @@ void on_help_about(gpointer data)
/* on_help_contents */ /* on_help_contents */
void on_help_contents(gpointer data) void on_help_contents(gpointer data)
{ {
Surfer * surfer = data; desktop_help_contents(PACKAGE, PROGNAME);
char buf[256];
Surfer * s;
snprintf(buf, sizeof(buf), "%s",
"file://" DATADIR "/doc/html/" PACKAGE "/surfer.html");
s = surfer_new(buf);
} }
#endif /* !EMBEDDED */ #endif /* !EMBEDDED */