aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/webbrowser.c
AgeCommit message (Collapse)AuthorFilesLines
2009-02-10make filename2uri() "public"Ulf Lamping1-1/+1
svn path=/trunk/; revision=27412
2008-07-10Note bug 2699, which reports a bug in xdg-open.Guy Harris1-0/+2
svn path=/trunk/; revision=25700
2008-06-30Move privileges.c and unicode-utils.c from epan to wsutil (so things likeJeff Morriss1-1/+1
capinfos and dumpcap don't need to depend on libwireshark nor directly pull in those modules). Because capinfos and editcap were only being linked with privileges.c if we had plugins, this allows those programs to be linked when someone is compiling --without-plugins. svn path=/trunk/; revision=25640
2008-06-23Give more details on the stuff Beast does, and suggest a possible schemeGuy Harris1-7/+27
for getting things as right as possible. gnome_url_show() is run by gnome-open, so just running gnome-open - or xdg-open, which runs gnome-open on GNOME - will suffice. svn path=/trunk/; revision=25533
2008-06-21Add stuff to a comment, and move stuff to that comment from elsewhere,Guy Harris1-7/+15
discussing the fun of launching on UNIX+X11. svn path=/trunk/; revision=25519
2008-06-21If we have xdg-open, always run that to launch a Web browser, and ignoreGuy Harris1-1/+35
the Web browser setting; that should honor the user's *real* preferred Web browser setting (i.e., the one they've selected in their desktop environment). Don't bother defining HTML_VIEWER as "xdg-open" if we have xdg-open - we don't need it. svn path=/trunk/; revision=25514
2008-04-18filename2uri() doesn't modify its parameter (and in at least one place we ↵Jeff Morriss1-48/+49
hand it a const argument) so make the parameter const. Also move the function up in the file (before its first use). svn path=/trunk/; revision=25113
2008-04-17On Windows: filemanager_open_directory: ensure a trailing '\' on path to ↵Bill Meier1-2/+14
ShellExecute; svn path=/trunk/; revision=25105
2008-04-17In filemanager_open_directory(), if we're not on Windows or OS X andGuy Harris1-0/+71
don't have xdg-open, convert the pathname to a URI and hand it to the browser. svn path=/trunk/; revision=25104
2008-04-17Use the "explore" verb when opening directories; that doesn't fix the caseGuy Harris1-1/+1
where there's an openable file and a directory with the same pathname except for the extension, but at least it prevents us from trying to open the file. svn path=/trunk/; revision=25103
2008-04-17Sigh. g_spawn_async() should take a "const gchar **" argument for argv,Guy Harris1-4/+4
as it shouldn't be modifying the strings, but it's "gchar **", so we can't make argv an array of "const gchar *" - which means that you can't put a "{g}char *" into it without a cast. Clean up white space. svn path=/trunk/; revision=25100
2008-04-17If we have xdg-open, define HAVE_XDG_OPEN.Guy Harris1-3/+75
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-13Allow the folders in the About Wireshark/Folders list to be double clicked ↵Graeme Lunt1-0/+10
on to open the appropriate folder in explorer. The MIB/PIB paths have been split up to allow each one to be clicked on separately, but as a result this will lose the order if the whole list is reordered. XXX: I have been unable to test this on MacOS or Linux. Stig? :-) I suppose it should work, but we may need to make it WIN32 specific? svn path=/trunk/; revision=24995
2008-04-13sort #includes by directoriesUlf Lamping1-5/+8
svn path=/trunk/; revision=24969
2008-04-12PRIMARY_TEXT_START and PRIMARY_TEXT_END are gone; useGuy Harris1-6/+6
simple_dialog_primary_start() and simple_dialog_primary_end() instead. svn path=/trunk/; revision=24925
2008-04-12where it's not necessary, remove #include "compat_macros.h"Ulf Lamping1-1/+0
svn path=/trunk/; revision=24922
2008-04-07- Remove GLIB1 codeStephen Fisher1-1/+0
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION - Remove ws_strsplit files because we no longer need to borrow GLIB2's g_strsplit code for the no longer supported GLIB1 builds svn path=/trunk/; revision=24829
2008-04-07Remove GTK1 code and change ugly version checking statements intoStephen Fisher1-22/+0
GTK_CHECK_VERSION(). svn path=/trunk/; revision=24826
2007-12-04Note in a comment the sad truth that CFURLCreateWithString() failsGuy Harris1-0/+6
either because of a bad URL string or a failure to allocate memory, and that we can't easily determine which of those happened. svn path=/trunk/; revision=23740
2007-12-03If CoreFoundation create calls fail, fail, don't drive on.Guy Harris1-0/+6
svn path=/trunk/; revision=23716
2007-02-13From Sebastien Tandel:Stephen Fisher1-0/+1
Create two new files (ws_strsplit.[ch]) that use GTK2 code to override the buggy g_strsplit() function when compiling for GTK1. Include this work-around function (ws_strsplit) in libwireshark.def. Add notes on usage to README.developer. Include epan/ws_strsplit.h in all files that use g_strsplit(). svn path=/trunk/; revision=20804
2006-10-25Include the top-level header for CoreFoundation, to see whether it'llGuy Harris1-3/+1
fix a build failure I've seen on L**p*rd. svn path=/trunk/; revision=19685
2006-09-22Add support for reading from stdin under Windows. Based on a patch sentGerald Combs1-7/+7
in last year by Gianluca Varenni. Add partial support for reading from named pipes (currently disabled). Move utf_8to16() and utf_16to8() to a separate module (unicode-utils.[ch]) so that we don't have to cut and paste code in dumpcap.c. Fix up whitespace. svn path=/trunk/; revision=19291
2006-05-22Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris1-5/+5
strings, and function names. svn path=/trunk/; revision=18205
2006-03-08Use Unicode for all native Win32 calls. Unicode Windows applicationsGerald Combs1-1/+4
use UTF-16 internally and GTK+ 2.x uses UTF-8, which means we have to do a lots of conversions. Add utf_8to16() and utf_16to8 convenience functions to strutil.c. svn path=/trunk/; revision=17534
2005-01-20add some more online help functionality and help buttons at various dialog ↵Ulf Lamping1-0/+2
boxes, if a help page *is* available. However, the new help system needs a lot more work before completed. svn path=/trunk/; revision=13152
2004-12-29Make the tone of the error messages a bit less formal, by usingGuy Harris1-1/+1
contractions. (Safari does, at least when you're trying to open a file to which you don't have read access.) svn path=/trunk/; revision=12852
2004-12-23show a simple_dialog, if we use glib 1.x and trying to open a webbrowser ↵Ulf Lamping1-0/+6
(not implemented). This will prevent another compiler warning. svn path=/trunk/; revision=12821
2004-09-30Add an RCS ID.Guy Harris1-0/+2
svn path=/trunk/; revision=12154
2004-09-27Move prefs.c and prefs.h into the epan subdirectory.Guy Harris1-1/+1
svn path=/trunk/; revision=12115
2004-07-27Note that, when we add the ability to build a GNOMEified Ethereal asGuy Harris1-0/+6
well as a GTK+-only Ethereal, we could use "gnome_url_show()" in GNOMEified Ethereal. svn path=/trunk/; revision=11546
2004-07-07With GLib 1.2[.x], undefine MUST_LAUNCH_BROWSER_OURSELVES, so that weGuy Harris1-2/+11
say that we don't need a preference for the command to launch a browser (that preference won't make any difference). svn path=/trunk/; revision=11330
2004-07-05from Gisle Vanem: if WIN32_LEAN_AND_MEAN is defined,Ulf Lamping1-0/+2
include shellapi.h too svn path=/trunk/; revision=11315
2004-07-01Trivial warning fixes: () -> (void) and comma at end of enumJörg Mayer1-1/+1
svn path=/trunk/; revision=11296
2004-06-29add a preference setting for the web browser commandUlf Lamping1-10/+29
svn path=/trunk/; revision=11269
2004-06-24As current implementation won't compile with GLib 1.x,Ulf Lamping1-1/+8
as a temporary solution, simply do nothing in this case. Has to be improved later svn path=/trunk/; revision=11228
2004-06-23Add "gtk/webbrowser.h" to declare functions from "gtk/webbrowser.c".Guy Harris1-4/+28
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
2004-06-22add functionality, to show html files from the local installationUlf Lamping1-0/+49
svn path=/trunk/; revision=11213
2004-06-22Style tweaks, and finish an unfinished comment.Guy Harris1-1/+3
svn path=/trunk/; revision=11209
2004-06-22On Mac OS X, use Launch Services to start a Web browser with a given URL.Guy Harris1-7/+37
svn path=/trunk/; revision=11208
2004-06-21Add experimental feature of opening a webbrowser, to show some of theUlf Lamping1-0/+139
webpages from http://www.ethereal.com. This functionality is copied from the Gimp. Win32 will use ShellExecute to use the system registered webbrowser. On unix builds, currently the mozilla browser is hardcoded, we still need a preference setting for this (I will add this later). svn path=/trunk/; revision=11206