Commit Graph

82 Commits

Author SHA1 Message Date
Bill Meier fd7021476f Add #include <stdio.h> to print.h; Undo the previous change to about_dlg.c
svn path=/trunk/; revision=29575
2009-08-26 23:24:22 +00:00
Bill Meier 228bc22aa9 Keep Solaris buildbot happy ....
svn path=/trunk/; revision=29573
2009-08-26 22:45:07 +00:00
Bill Meier e1eff63e02 about_dlg: fix a memory leak when double-clicking on a path.
svn path=/trunk/; revision=28563
2009-06-01 17:08:46 +00:00
Stig Bjørlykke ccc30a5fc6 Added Python Bindings directory to the About->Folders listing.
svn path=/trunk/; revision=28547
2009-05-31 18:30:07 +00:00
Stig Bjørlykke 009256c3a5 From Siddhes (bug 3483):
Throttle splash screen updates when running remote.

svn path=/trunk/; revision=28503
2009-05-27 14:13:55 +00:00
Guy Harris 54c159cb41 Turn on -Wshorten-64-to-32 by default, and fix some issues that turned
up (99 44/100% of which were assignments of double-precision
floating-point constants to floats).  Hopefully this will catch at least
some P64 issues on UN*X.

svn path=/trunk/; revision=28108
2009-04-21 16:57:52 +00:00
Gerald Combs 7d22c0fb7f Rename geoip.[ch] to geoip_db.[ch] so we don't collide with GeoIP.h. Rename
some functions to match.

Add GeoIP lookups to the IP dissector. Add a preference for GeoIP lookups,
which is disabled by default.

svn path=/trunk/; revision=27063
2008-12-19 23:49:03 +00:00
Stig Bjørlykke 2ec94c8f7c Show configured GeoIP paths in About->Folders
svn path=/trunk/; revision=26587
2008-10-27 20:35:52 +00:00
Anders Broman dc8a11f7bb Fix:About dialog: all text selected when switching tabs
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1349
Hopfully the right thing to do :)

svn path=/trunk/; revision=26247
2008-09-22 21:28:55 +00:00
Bill Meier 56206e0002 Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_container_border_width()          ==> gtk_container_set_border_width()
  gtk_container_children()              ==> gtk_container_get_children()
  gtk_entry_new_with_max_length()       ==> gtk_entry_new(); gtk_entry_set_max_length()
  gtk_menu_append()                     ==> gtk_menu_shell_append()
  gtk_menu_prepend()                    ==> gtk_menu_shell_prepend()
  gtk_notebook_set_page()               ==> gtk_notebook_set_current_page()
  gtk_paned_gutter_size()               ==> gtk_paned_set_gutter_size()
  gtk_radio_button_group()              ==> gtk_radio_button_get_group()
  gtk_signal_connect()                  ==> g_signal_connect()
  gtk_signal_disconnect()               ==> g_signal_handler_disconnect()
  gtk_signal_emit_by_name()             ==> g_signal_emit_by_name()
  gtk_signal_handler_block_by_data()    ==> g_signal_handlers_block_matched()
  gtk_signal_handler_block_by_func()    ==> g_signal_handlers_block_by_func()
  gtk_signal_handler_unblock_by_data()  ==> g_signal-handlers_unblock_matched()
  gtk_signal_handler_unblock_by_func()  ==> g_signal-handlers_unblock_by_func()
  gtk_spin_button_get_value_as_float()  ==> gtk_spin_button_get_value()
  gtk_toggle_button_set_state()         ==> gtk_toggle_button_set_active()

svn path=/trunk/; revision=25634
2008-06-29 15:51:43 +00:00
Gerald Combs 495ddc2830 Make it obvious that this is a development version. Fix a makefile
dependency on the splash images.

svn path=/trunk/; revision=25594
2008-06-24 22:53:52 +00:00
Guy Harris b2f4f0a228 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
Stig Bjørlykke 50f4da953e Fix splitting MIB/PIB paths in about box for other than win32.
svn path=/trunk/; revision=25004
2008-04-13 22:21:07 +00:00
Michael Tüxen f1fedb6b73 Get it compiing on Mac OS X.
svn path=/trunk/; revision=24999
2008-04-13 20:11:16 +00:00
Graeme Lunt 39ab6c51c0 Allow the folders in the About Wireshark/Folders list to be double clicked 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-13 17:48:47 +00:00
Ulf Lamping ce552a159e text_page -> text_page_utils
svn path=/trunk/; revision=24973
2008-04-13 12:24:57 +00:00
Ulf Lamping 0b97c4211e sort #includes by directories
svn path=/trunk/; revision=24967
2008-04-13 00:55:59 +00:00
Ulf Lamping d4ccf577a8 where it's not necessary, remove #include "compat_macros.h"
svn path=/trunk/; revision=24922
2008-04-12 01:02:59 +00:00
Ulf Lamping d470674329 some minor GTK1 related code fixes
svn path=/trunk/; revision=24873
2008-04-09 23:06:01 +00:00
Stephen Fisher 41654fe5e4 Start getting rid of the uses of compat_macro.h's macros.
svn path=/trunk/; revision=24860
2008-04-09 05:37:53 +00:00
Ulf Lamping 476113a643 remove GTK1 code
svn path=/trunk/; revision=24807
2008-04-06 22:04:43 +00:00
Stig Bjørlykke a2d1e9005d This patch adds support for configuration profiles, which can be used to
configure and use more than one set of preferences and configuration files.

This can be found in the "Configuration Profiles..." menu item from the Edit
menu, or by pressing Shift-Ctrl-A.  It's also possible to start wireshark
and tshark with a named profile by using the "-C ProfileName" option.
A new status pane in the main window will show the current profile.

The configuration files currently stored in the Profiles are:
- Preferences
- Capture Filters
- Display Filters
- Coloring Rules
- Disabled Protocols
- User Accessible Tables

The recent data are by design not added to the profile.

Planned future enhancements:
- make a more convenient function to switch between profiles
- add a "clone profile" button to copy an existing profile
- make the profiles list active and accept return as OK
- save users "Decode as" in the profile
- make new, clone and deletion of profiles more secure
- make some of the recent values available in the profile

This patch also fixes:
- setting default status pane sizes
- a bug setting status pane for packets when not having main lower pane.

svn path=/trunk/; revision=24089
2008-01-14 16:40:23 +00:00
Gerald Combs 0fa29bb1ea Add an oid_get_default_mib_path() function, and use it to display the MIB
path in About->Folders.

svn path=/trunk/; revision=23753
2007-12-04 18:43:40 +00:00
Gerald Combs 85d12e73b3 Disable splash message logging, since it seems to ignore the log level mask.
svn path=/trunk/; revision=23611
2007-11-26 21:54:00 +00:00
Gerald Combs 9e16f1313c If the user has G_LOG_LEVEL_INFO enabled, provide startup progress messages.
svn path=/trunk/; revision=23606
2007-11-26 18:38:03 +00:00
Jaap Keuter 3888c12abf Make the splash screen look just a little bit better.
svn path=/trunk/; revision=22843
2007-09-11 16:54:27 +00:00
Sake Blok 27efb95042 This patch fixes the following two errors that appear when
configure is run with "--without-plugins"

cc1: warnings being treated as errors
about_dlg.c: In function ‘about_wireshark_cb’:
about_dlg.c:426: warning: unused variable ‘plugins_page’
make[2]: *** [about_dlg.o] Error 1

editcap.c: In function ‘main’:
editcap.c:663: error: ‘check_ts’ undeclared (first use in this function)
editcap.c:663: error: (Each undeclared identifier is reported only once
editcap.c:663: error: for each function it appears in.)
make[2]: *** [editcap.o] Error 1


svn path=/trunk/; revision=22761
2007-08-31 14:14:17 +00:00
Jaap Keuter db0a89220f Just keep it simple.
svn path=/trunk/; revision=22081
2007-06-12 18:43:24 +00:00
Guy Harris 944d2e5487 Squelch some qualifier (const vs. non-const) warnings.
svn path=/trunk/; revision=21938
2007-05-25 19:13:49 +00:00
Gerald Combs 997b60df05 Decrease the refresh time to 100ms. This seems to make the splash
screen updates a little more smooth without affecting the startup
time for remote sessions.

svn path=/trunk/; revision=21815
2007-05-17 17:15:51 +00:00
Ronnie Sahlberg 0491f613c8 dont use g_time_add_val() since it is not available in gtk1
svn path=/trunk/; revision=21798
2007-05-16 00:55:47 +00:00
Gerald Combs d251c05fad Instead of updating the splash screen every time we load or hand off
a dissector, update it every 250 ms.  This drastically reduces the
startup time on remote displays (for me, at least).

svn path=/trunk/; revision=21796
2007-05-15 23:06:48 +00:00
Graeme Lunt 83a8448dae Missing string.h for strncmp.
svn path=/trunk/; revision=21718
2007-05-07 19:02:27 +00:00
Graeme Lunt cf56e76be9 Updated splash screen for Wireshark that shows the initialisation progress.
The splash screen shows a progress bar and a percentage complete - like the progress dialog.
As dissectors are initialised and handed off the name is shown. However, the names of plugin dissectors are not shown.
The update to the make-dissector-reg shell script has been tested, though I think generally the python version is used.


svn path=/trunk/; revision=21716
2007-05-07 17:55:42 +00:00
Jeff Morriss 0c17bfd3a8 From Eric Hall to fix bug 1289:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1289

Rename 'svnversion' to 'wireshark_svnversion' to resolve a symbol conflict with
GTK 2.10.6 (hmm, shouldn't GTK not be exporting that symbol or at least naming
it so as to prevent such collisions? Well, so should we, so...)

From Andreas Fink: change #ifdef for size_t in airdcap_interop.h to fix
compile on MacOS X.


svn path=/trunk/; revision=20726
2007-02-06 02:27:59 +00:00
Gerald Combs 1e6ce19f79 Recent versions of GTK+ have added a "gtk-label-select-on-focus"
property, which selects the entire contents of a label when it comes
into focus.  This property annoyingly defaults to TRUE, which meant that
the labels in simple dialogs and the about box would unexpectedly show
up selected.

Work around this by setting the focus on the "OK" button in the about
dialog and the first button specified in simple dialogs.

svn path=/trunk/; revision=20507
2007-01-20 02:05:49 +00:00
Guy Harris 44c0624bd9 Add a WIRESHARK_RUN_FROM_BUILD_DIRECTORY environment variable on UN*X;
if set, and if the program isn't running with additional privileges,
it'll treat the directory in which the program is found as the data
directory.

If, on Windows, the version-number subdirectory of {data
directory}\plugins doesn't exist (which is assumed to mean that the
program is being run from the build directory), or if, on UN*X,
WIRESHARK_RUN_FROM_BUILD_DIRECTORY is set, the plugin directory is the
"plugins" subdirectory of the data directory, and all subdirectories of
that directory are scanned for plugins, as the "plugins" subdirectory of
the build directory contains subdirectories for the plugins; this means
that if we're running from the build directory, we'll find the plugins
we built in the build tree.

When generating the wireshark-filter man page, run tshark with
WIRESHARK_RUN_FROM_BUILD_DIRECTORY set, so it uses the plugins from the
build to generate the list of filters.

svn path=/trunk/; revision=20261
2007-01-02 06:49:40 +00:00
Gerald Combs ff8422a3e4 From Giorgio Tino: Add support for version 2.0 of the AirPcap driver,
which has an updated API for WEP key handling.

svn path=/trunk/; revision=19736
2006-10-30 06:34:31 +00:00
Ulf Lamping e26475108a the text in the about box license page was hard to read because of line breaks at the wrong places.
set the minimum size of the widget to 600 pixels - this is working well on my machine. If anyone has problems even with this width (e.g. because of using a larger font) we might increase the size even further.

Of course, this increases the overall size of the about dialog, but the other tabs seem to be working well with it.

svn path=/trunk/; revision=19652
2006-10-21 12:06:26 +00:00
Jaap Keuter 4f5a48c4f6 Adding license tab to about dialog
svn path=/trunk/; revision=19601
2006-10-19 06:29:13 +00:00
Ulf Lamping 3b815838f3 "Wireshark - Network Protocol Analyzer" -> "Network Protocol Analyzer", as the name Wireshark is already in the logo (it wasn't in the former "E" logo)
svn path=/trunk/; revision=18322
2006-06-02 17:23:31 +00:00
Gerald Combs 76103f44f2 Add a new splash image.
svn path=/trunk/; revision=18294
2006-05-31 22:51:38 +00:00
Anders Broman 05448fcc3d Ethereal->Wireshark
svn path=/trunk/; revision=18232
2006-05-28 17:19:08 +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
Ronnie Sahlberg 89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Guy Harris 0dfbc73cbe Handle the case where we *can't* determine the pathname in which to find
programs, by reporting it with a dialog box that at least attempts to
indicate what the problem is, and by giving up early on running dumpcap.

svn path=/trunk/; revision=18051
2006-05-01 06:51:14 +00:00
Guy Harris 84aef00bad Move the file selection dialog routines to file_dlg.c, and give it a
header file.

#if 0 out some includes; if none of the builds have a problem with
that, I'll remove them.

svn path=/trunk/; revision=18036
2006-04-30 01:47:58 +00:00
Guy Harris b8136fbfa9 Add a routine to attempt to get the absolute pathname of the executable
file, strip off the last component to get the pathname of the directory
containing the executable file, and save it for future use.  On Windows,
you can get that from the OS, but, on UN*X, you have to look at argv[0]
and derive the absolute path from that (argv[0] is not guaranteed to be
an absolute path, or even a path at all).  (In addition, if you're
running from the build directory, you might have to strip off a ".libs/"
added to argv[0] as an artifact of the libtoolizing script.)

Use that in the About dialog, and use it to construct the path of
dumpcap.

Don't put quotes into the path of dumpcap; you don't have to quote
strings with spaces in them when handing them to execvp and, in fact,
you *mustn't* quote them, as the quotes will be treated as part of the
pathname.

svn path=/trunk/; revision=17267
2006-02-12 03:15:29 +00:00
Guy Harris c9b702ba1a Provide not only copyright information, but a GPL blurb, in all the
version/usage messages.

Put newlines at the end of various version strings.

svn path=/trunk/; revision=16870
2005-12-21 08:59:52 +00:00
Jörg Mayer 0edcc8920e - Declare some functions static
- Add plugins_dlg.h
- Include .h files in their respective .c files
- Include .h and remove extern declarations in .c files
- set eol-style and keywords on gui_utils.[hc]

svn path=/trunk/; revision=15471
2005-08-20 14:02:00 +00:00