Michael Tüxen
8180111144
Use g_object_set() instead of gtk_object_set().
...
svn path=/trunk/; revision=37917
2011-07-06 11:35:52 +00:00
Michael Tüxen
b682b5ee01
Get it even linking...
...
svn path=/trunk/; revision=37916
2011-07-06 11:25:57 +00:00
Michael Tüxen
eef7623fb9
Get it compiling when not having libpcap.
...
svn path=/trunk/; revision=37915
2011-07-06 11:22:38 +00:00
Michael Tüxen
48683778a0
Add support for multiple interface to the main welcome screen.
...
This patch is from Irene Ruengeler.
svn path=/trunk/; revision=37913
2011-07-06 09:17:06 +00:00
Michael Tüxen
421dafd2de
Get rid of old non-interface specific settings which are now interface
...
specifc. This finalizes the change of the infrastructure.
This patch is based on work by Irene Ruengeler.
svn path=/trunk/; revision=37794
2011-06-27 00:09:03 +00:00
Anders Broman
7deaa0ce7a
Make it possible to copy stuff from the welcome header.
...
svn path=/trunk/; revision=37749
2011-06-22 08:54:17 +00:00
Michael Tüxen
985a98dd1b
Fix the case where you start with interfaces on the command line
...
(so using ifaces) and then using the GUI (which only deals with
iface).
These kind of problems will completely disappear when the
old strucuture components like iface have completely be
retired. This is the next thing we will work on.
svn path=/trunk/; revision=37345
2011-05-22 11:11:00 +00:00
Balint Reczey
5921cd68a2
Refer to "Capture Help" as "Capture Help below" when there are no interfaces
...
to capture on.
svn path=/trunk/; revision=37238
2011-05-18 13:08:02 +00:00
Guy Harris
da1403c6dd
This ain't C++; you have to put "void" in as the argument list of
...
functions that take no arguments, otherwise the function is treated as a
crufty old C function with undeclared arguments.
svn path=/trunk/; revision=37211
2011-05-17 21:26:25 +00:00
Balint Reczey
72b5d04c1a
If no interface is found for capturing show this information
...
and direct user to Capture Help instead of showing the empty list of
interfaces and capture options.
svn path=/trunk/; revision=37016
2011-05-08 10:56:23 +00:00
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