diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-06-23 01:38:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-06-23 01:38:39 +0000 |
commit | aacb8bc9b64f0ee93a865445f39429bfb90475e8 (patch) | |
tree | 41a3cbc1a0804036bf87b13d832dce33a54ae543 /gtk/webbrowser.h | |
parent | fe40fa191e2e2b9e6c4dff2ac52bf5db541a9c46 (diff) | |
download | wireshark-aacb8bc9b64f0ee93a865445f39429bfb90475e8.tar.gz wireshark-aacb8bc9b64f0ee93a865445f39429bfb90475e8.tar.bz2 wireshark-aacb8bc9b64f0ee93a865445f39429bfb90475e8.zip |
Add "gtk/webbrowser.h" to declare functions from "gtk/webbrowser.c".
Rename "browser_open_program_file()" to "browser_open_data_file()", and
make it open files relative to the application's data directory, as
that's where data files such as HTMLized man pages would be put. (That
happens to be the program directory on Windows, but it's a different
directory on UN*X - and you aren't guaranteed to be able to find the
program directory on UN*X by looking at argv[0] in any case.) Move it
to "gtk/webbrowser.c".
Fix "filename2url()" to put "file://", not just "file:", in front of
pathnames on UN*X.
svn path=/trunk/; revision=11216
Diffstat (limited to 'gtk/webbrowser.h')
-rw-r--r-- | gtk/webbrowser.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gtk/webbrowser.h b/gtk/webbrowser.h new file mode 100644 index 0000000000..e747aa28d9 --- /dev/null +++ b/gtk/webbrowser.h @@ -0,0 +1,33 @@ +/* webbrowser.h + * Web browser activation functions + * + * $Id: webbrowser.h,v 1.1 2004/06/23 01:38:39 guy Exp $ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs <gerald@ethereal.com> + * Copyright 1998 Gerald Combs + * + * 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 the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __WEBBROWSER_H__ +#define __WEBBROWSER_H__ + +extern gboolean browser_open_url (const gchar *url); + +/* browse a file relative to the data dir */ +extern void browser_open_data_file (const gchar *filename); + +#endif /* __WEBBROWSER_H__ */ |