diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-04-17 16:14:22 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2008-04-17 16:14:22 +0000 |
commit | ad4d52e150d2f6a8093ff25db9164e53bfaf7874 (patch) | |
tree | d058d883e682d4f35bd5fc0d67d8de828a649bba /gtk/webbrowser.h | |
parent | 7d2e8f1ba863101ecc2bdcbe2cf79bfa35611b7b (diff) |
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?)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25097 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/webbrowser.h')
-rw-r--r-- | gtk/webbrowser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/webbrowser.h b/gtk/webbrowser.h index 84d9e10e22..243fceb155 100644 --- a/gtk/webbrowser.h +++ b/gtk/webbrowser.h @@ -29,6 +29,8 @@ extern gboolean browser_needs_pref(void); extern gboolean browser_open_url (const gchar *url); +extern gboolean filemanager_open_directory (const gchar *path); + /* browse a file relative to the data dir */ extern void browser_open_data_file (const gchar *filename); |