aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/webbrowser.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-06-23 01:38:39 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2004-06-23 01:38:39 +0000
commita6bf4adb74ab589d98d6441349727507cbc2c1b1 (patch)
tree41a3cbc1a0804036bf87b13d832dce33a54ae543 /gtk/webbrowser.h
parent24dec3c04e07dcf374a78b930511dca0877641fc (diff)
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11216 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/webbrowser.h')
-rw-r--r--gtk/webbrowser.h33
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__ */