1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#include "gcin.h"
#include "gtab.h"
#include "config.h"
#if UNIX
#include <signal.h>
#endif
int html_browser(char *fname)
{
#if WIN32
LONG r = (LONG)ShellExecuteA(NULL, "open", fname, NULL, NULL, SW_SHOWNORMAL);
return r;
#else
#if 0
static char html_browse[]=GCIN_SCRIPT_DIR"/html-browser";
char tt[256];
sprintf(tt, "%s %s", html_browse, fname);
dbg("%s\n", tt);
return system(tt);
#else
GError *error;
error = NULL;
gtk_show_uri (gdk_screen_get_default (), fname, gtk_get_current_event_time (), &error);
#endif
#endif
}
|