Commit Graph

73 Commits

Author SHA1 Message Date
Guy Harris 4fdcc5c180 Rename ws_stat to ws_stat64, and make it take a pointer to a ws_statb64
as an argument, along the lines of ws_fstat64, and, on Windows, make it
use _wstati64, to handle 64-bit file sizes.

svn path=/trunk/; revision=36547
2011-04-10 20:59:10 +00:00
Stephen Fisher 5a7b4defa3 After applying GUI preferences, reset the welcome screen's header message
in case the show version in welcome screen option was toggled.


svn path=/trunk/; revision=35114
2010-12-03 22:19:58 +00:00
Guy Harris 002a1b75fa Make some other statusbar routines take a format string and format args,
and get rid of an unnecessary string pointer.

Make the argument to welcome_header_push_msg() a const pointer.

svn path=/trunk/; revision=35042
2010-11-27 23:06:14 +00:00
Stig Bjørlykke fb0621683d Split some texts on the welcome page to make "Interface List" and
"Capture Help" smaller to make room for longer filenames in the
Open Recent list.

svn path=/trunk/; revision=34379
2010-10-05 06:59:11 +00:00
Gerald Combs 31e1d6463f Initialize a variable before we try to free it.
svn path=/trunk/; revision=33877
2010-08-21 16:38:13 +00:00
Jeff Morriss 000b99fc5f Free the err_str from capture_interface_list() even if the error isn't CANT_GET_INTERFACE_LIST.
svn path=/trunk/; revision=33866
2010-08-20 22:15:07 +00:00
Bill Meier 3911b90cde Use proper signatures for event callback functions:
EG: Non-event signal callback functions shouldn't
   be directly used as event callback functions.
Replace use of deprecated "GtkSignalFunc";
Whitespace cleanup.

svn path=/trunk/; revision=33849
2010-08-19 15:02:23 +00:00
Gerald Combs 366d3cf473 Fix an include.
svn path=/trunk/; revision=33819
2010-08-16 18:58:24 +00:00
Gerald Combs 303030f5c1 Fix compilation on Windows.
svn path=/trunk/; revision=33818
2010-08-16 18:32:27 +00:00
Gerald Combs 6ef98db3bb Don't drop characters in the middle of a UTF-8 sequence. Fixes bug 5066.
Use an ellipsis character instead of three dots.

svn path=/trunk/; revision=33816
2010-08-16 17:53:43 +00:00
Jaap Keuter d31046f46e Fix for bug 4875:
Don't hint at a local User's Gude when there isn't one.

svn path=/trunk/; revision=33267
2010-06-20 16:27:03 +00:00
Guy Harris e1e576c11b Support monitor mode in the capture preferences.
Use prefs_is_capture_device_hidden() to find out whether a device should
be hidden - don't scan the list of hidden devices ourselves.

svn path=/trunk/; revision=32820
2010-05-15 19:38:13 +00:00
Guy Harris 8d56103f48 Don't include capture-related headers if we don't support capturing
network traffic.

svn path=/trunk/; revision=32802
2010-05-14 01:39:02 +00:00
Jaap Keuter 59c1e948e3 Fix for bug 2478:
"Push to test. Release to detonate."

svn path=/trunk/; revision=32005
2010-02-25 17:41:57 +00:00
Stig Bjørlykke 330a257c0a Set correct linktype when starting capture from the welcome page.
svn path=/trunk/; revision=31393
2009-12-30 19:21:21 +00:00
Gerald Combs 52eaeafba9 Borrow some of the web site colors for the welcome screen.
svn path=/trunk/; revision=31147
2009-12-02 00:31:04 +00:00
Gerald Combs ccad8f74f5 Make sure we don't fetch too much data from the registry.
svn path=/trunk/; revision=29949
2009-09-16 20:29:00 +00:00
Gerald Combs 668723356a Check for TCP Chimney offloading as described at
http://support.microsoft.com/kb/912222. Print a warning on the welcome
page if it's present and enabled.

This hasn't yet been tested on a chimney-enabled machine, but it should
work.

svn path=/trunk/; revision=29948
2009-09-16 19:23:15 +00:00
Guy Harris 432cac16f3 "main_menu.[ch]" -> "menus.[ch]"; it handles not only the main menu, but
context menus.

Note why we have an empty hex dump pane context menu.

svn path=/trunk/; revision=28794
2009-06-21 19:16:37 +00:00
Gerald Combs 42ad8213bb From David Aggeler via bug 3468:
Escape filenames in the welcome screen with g_markup_escape_text().


From me:

Add a binary prefix for gigabytes. Add a comment explaining why we're
using binary prefixes instead of IEC.

svn path=/trunk/; revision=28453
2009-05-22 23:09:31 +00:00
Jörg Mayer af417beb8e Warningfix:
function() -> function(void)

svn path=/trunk/; revision=28302
2009-05-08 15:16:07 +00:00
Gerald Combs 4ea71f1095 Add the ability to push and pop messages in to and out of the welcome
screen header, similar to the status bar. Hide the welcome body if the
message stack length is > 0.  Use this to display the "Waiting for
capture input data..." message when we're capturing from a pipe. This
lets the user know what's going on and keeps them from clicking on a
welcome screen item while we're waiting for data to arrive.  You can see
this in action by running

   (sleep 5; cat /path/to/a/capture) | wireshark -k -i -

svn path=/trunk/; revision=28196
2009-04-29 22:42:33 +00:00
Guy Harris 043b2b20ac More float-constant-not-double-constant fixes.
svn path=/trunk/; revision=28116
2009-04-22 00:49:00 +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
Anders Broman caa4281da4 gtk_widget_ref() -> g_object_ref()
GTK_SIGNAL_FUNC -> G_CALLBACK()

svn path=/trunk/; revision=28017
2009-04-09 05:51:56 +00:00
Stig Bjørlykke 62f60df6b4 From Jakub Zawadzki (bug 3331):
g_free() is NULL safe, so we don't need check against it.

svn path=/trunk/; revision=27718
2009-03-13 22:06:48 +00:00
Stig Bjørlykke 18c5caa3d4 From Jakub Zawadzki:
Use non-formatting functions when appropriate.

svn path=/trunk/; revision=27709
2009-03-12 07:56:42 +00:00
Guy Harris 82b8d25678 Move declarations of routines in gtk/capture_if_dlg.c into
gtk/capture_if_dlg.h.  Include that header when appropriate.

Get rid of include of <sys/wait.h> in gtk/capture_if_dlg.c; there's no
forking or waiting in there.

Make update_if() in gtk/capture_if_dlg.c static - it's not used outside
that file.

svn path=/trunk/; revision=27347
2009-02-01 23:14:07 +00:00
Guy Harris ef07402aa5 Add (preliminary, and a bit hacky) support for interface-type icons on
OS X.

Add some comments to the interface-type icon code, and, when looking for
certain text in the description on Windows, look in the interface
description supplied by WinPcap rather than the user-supplied
description (if we want to look in the latter, we presumably want to
look in both, so the user giving a wireless interface a name they like
won't break the code that checks for wireless interfaces).  There's
probably *some* NDIS OID that can give you the information you want -
hopefully, not an NDIS 6-only OID).

svn path=/trunk/; revision=27345
2009-02-01 22:20:42 +00:00
Ulf Lamping df3c99a109 Windows only: for some typical capture interface names (with a "built in" heuristic), show specific icons in the interface list and the welcome page (this helps to find the right interface)
svn path=/trunk/; revision=27335
2009-01-30 22:55:52 +00:00
Jörg Mayer 4149a23cc5 Trivial warning fixes
svn path=/trunk/; revision=26899
2008-12-02 08:11:23 +00:00
Stig Bjørlykke da4327b2ea Always show version in black.
svn path=/trunk/; revision=26678
2008-11-03 14:25:39 +00:00
Gerald Combs 41d39d4f33 If we click on an interface in the welcome screen, correctly enable/disable
the wireless toolbar.

svn path=/trunk/; revision=26471
2008-10-15 22:51:17 +00:00
Stig Bjørlykke 7e3514c200 Add a hidden preference to show the version in the welcome page.
svn path=/trunk/; revision=26371
2008-10-07 15:18:40 +00:00
Stig Bjørlykke 66f160728f Fix printing of version in welcome page.
svn path=/trunk/; revision=26370
2008-10-07 14:06:44 +00:00
Gerald Combs a6bb39afe3 Add a hidden preference to set the welcome screen title.
svn path=/trunk/; revision=26366
2008-10-06 22:49:01 +00:00
Guy Harris 28971d38fc Fix typo in #define.
Fix indentation (a tab doesn't necessarily expand to 4 spaces).

svn path=/trunk/; revision=26118
2008-09-02 18:20:36 +00:00
Anders Broman f3fd97dc39 Make it easy to put the version on the Welcom page if wanted.
svn path=/trunk/; revision=26117
2008-09-02 17:41:47 +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 f441b8941e Add gtk/capture_globals.h, to declare global_capture_opts, so files that
don't need global_capture_opts don't need to have it declared and thus
don't need capture_options defined.

Include gtk/capture_globals in the files in question.

Change some more capture_opts references to refer to
global_capture_opts.

Change some global_capture_opts references in routines with a
capture_opts argument to refer to capture_opts.

The structure type is capture_options, not capture_opts; fix some
references.

Include <sys/types.h>, if it's present, in capture_opts.h, so we get
gid_t defined.

Clean up indentation.

svn path=/trunk/; revision=25574
2008-06-24 03:38:15 +00:00
Guy Harris 19470978ef Encase another variable used only if we support capture in #ifdef
HAVE_LIBPCAP/#endif.

svn path=/trunk/; revision=25482
2008-06-18 21:23:52 +00:00
Stig Bjørlykke 4235740cad Put a variable inside a ifdef HAVE_LIBPCAP
svn path=/trunk/; revision=25481
2008-06-18 20:59:57 +00:00
Stig Bjørlykke 52bb83fd57 Reload the interface list on the welcome page when changing profile and
after editing the interface options.

svn path=/trunk/; revision=25479
2008-06-18 20:14:28 +00:00
Jeff Morriss a5cee04fad Move the file utility functions from wiretap to libwsutil so that
libwireshark (and the plugins using those functions) do not depend on
wiretap on Windows.

While doing that, rename the eth_* functions to ws_*.

svn path=/trunk/; revision=25354
2008-05-22 15:46:27 +00:00
Stig Bjørlykke 4af0ec58ef Force foreground when background is forced on welcome page.
svn path=/trunk/; revision=25301
2008-05-14 10:56:31 +00:00
Ulf Lamping a7e8d7f743 I'v fixed the bug reported by Stig that no items appear and also ..
from Jim Young:
The attached patch simply tests for a non-NULL 
welcome_file_panel_vb before attempting to get the 
child_list.

svn path=/trunk/; revision=25120
2008-04-19 18:39:58 +00:00
Ulf Lamping 86ee4fc3fc add a way to place the capture interfaces and recent files list into a scrolled_window once the number of them get's "too large"
svn path=/trunk/; revision=25119
2008-04-19 13:33:42 +00:00
Stig Bjørlykke b205017b3e Display the interface comment if defined.
On non-win32 also display the interface name.

svn path=/trunk/; revision=25114
2008-04-18 14:29:54 +00:00
Jeff Morriss 7ca7f149ce Change an assignment-in-an-if to a comparison.
svn path=/trunk/; revision=25112
2008-04-18 12:42:27 +00:00