2004-06-23 01:38:39 +00:00
|
|
|
/* webbrowser.h
|
|
|
|
* Web browser activation functions
|
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2004-06-23 01:38:39 +00:00
|
|
|
* 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
|
2012-06-28 22:56:06 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2004-06-23 01:38:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WEBBROWSER_H__
|
|
|
|
#define __WEBBROWSER_H__
|
|
|
|
|
2004-07-01 09:35:33 +00:00
|
|
|
extern gboolean browser_needs_pref(void);
|
2004-06-29 17:10:53 +00:00
|
|
|
|
2004-06-23 01:38:39 +00:00
|
|
|
extern gboolean browser_open_url (const gchar *url);
|
|
|
|
|
If we have xdg-open, define HAVE_XDG_OPEN.
Add a routine "filemanager_open_directory()", which takes a pathname
(presumed to be UTF-8 in Windows and Mac OS X; this might need work for
other UN*Xes) and attempts to open a file manager window for it, using
ShellExecute on Windows, Launch Services on OS X, and, for now, running
xdg-open on other OSes if we have it (should we have a preference for
the file manaager, just as we have one for the Web browser?).
(For that matter, if we have xdg-open, do we need a preference for the
Web browser, or should we just have xdg-open open the Web browser?)
svn path=/trunk/; revision=25097
2008-04-17 16:14:22 +00:00
|
|
|
extern gboolean filemanager_open_directory (const gchar *path);
|
|
|
|
|
2004-06-23 01:38:39 +00:00
|
|
|
/* browse a file relative to the data dir */
|
|
|
|
extern void browser_open_data_file (const gchar *filename);
|
|
|
|
|
|
|
|
#endif /* __WEBBROWSER_H__ */
|