Commit Graph

23 Commits

Author SHA1 Message Date
Guy Harris 9f720bb78f Note in a comment the sad truth that CFURLCreateWithString() fails
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-04 04:33:44 +00:00
Guy Harris 835bcbd5e5 If CoreFoundation create calls fail, fail, don't drive on.
svn path=/trunk/; revision=23716
2007-12-03 21:41:06 +00:00
Stephen Fisher 0ebc01dc03 From Sebastien Tandel:
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
2007-02-13 20:57:22 +00:00
Guy Harris 3a21415651 Include the top-level header for CoreFoundation, to see whether it'll
fix a build failure I've seen on L**p*rd.

svn path=/trunk/; revision=19685
2006-10-25 18:25:17 +00:00
Gerald Combs 9e23f31e5f Add support for reading from stdin under Windows. Based on a patch sent
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-09-22 21:14:54 +00:00
Guy Harris 92552c2d76 Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUI
strings, and function names.

svn path=/trunk/; revision=18205
2006-05-22 07:29:40 +00:00
Gerald Combs 9406c5db24 Use Unicode for all native Win32 calls. Unicode Windows applications
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
2006-03-08 20:55:32 +00:00
Ulf Lamping 66ce7f3623 add some more online help functionality and help buttons at various dialog boxes, if a help page *is* available. However, the new help system needs a lot more work before completed.
svn path=/trunk/; revision=13152
2005-01-20 23:17:23 +00:00
Guy Harris f1deabed56 Make the tone of the error messages a bit less formal, by using
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-29 01:08:20 +00:00
Ulf Lamping 124544cc39 show a simple_dialog, if we use glib 1.x and trying to open a webbrowser (not implemented). This will prevent another compiler warning.
svn path=/trunk/; revision=12821
2004-12-23 13:34:02 +00:00
Guy Harris d23ca96d16 Add an RCS ID.
svn path=/trunk/; revision=12154
2004-09-30 19:49:48 +00:00
Guy Harris bbe7f89742 Move prefs.c and prefs.h into the epan subdirectory.
svn path=/trunk/; revision=12115
2004-09-27 22:55:15 +00:00
Guy Harris 0f91ada161 Note that, when we add the ability to build a GNOMEified Ethereal as
well as a GTK+-only Ethereal, we could use "gnome_url_show()" in
GNOMEified Ethereal.

svn path=/trunk/; revision=11546
2004-07-27 22:39:43 +00:00
Guy Harris a54ce518c8 With GLib 1.2[.x], undefine MUST_LAUNCH_BROWSER_OURSELVES, so that we
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-07 06:09:50 +00:00
Ulf Lamping 074c978ab5 from Gisle Vanem: if WIN32_LEAN_AND_MEAN is defined,
include shellapi.h too

svn path=/trunk/; revision=11315
2004-07-05 05:40:51 +00:00
Jörg Mayer 227ba2f04b Trivial warning fixes: () -> (void) and comma at end of enum
svn path=/trunk/; revision=11296
2004-07-01 09:35:33 +00:00
Ulf Lamping 891608f72e add a preference setting for the web browser command
svn path=/trunk/; revision=11269
2004-06-29 17:10:53 +00:00
Ulf Lamping 84ea1ec5f6 As current implementation won't compile with GLib 1.x,
as a temporary solution, simply do nothing in this case.
Has to be improved later

svn path=/trunk/; revision=11228
2004-06-24 17:45:30 +00:00
Guy Harris aacb8bc9b6 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
2004-06-23 01:38:39 +00:00
Ulf Lamping eab0af6659 add functionality, to show html files from the local installation
svn path=/trunk/; revision=11213
2004-06-22 16:28:27 +00:00
Guy Harris 26664e5665 Style tweaks, and finish an unfinished comment.
svn path=/trunk/; revision=11209
2004-06-22 01:00:02 +00:00
Guy Harris 9bb3e4cf9e On Mac OS X, use Launch Services to start a Web browser with a given URL.
svn path=/trunk/; revision=11208
2004-06-22 00:40:03 +00:00
Ulf Lamping 2a6da1361c Add experimental feature of opening a webbrowser, to show some of the
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
2004-06-21 17:27:35 +00:00