Commit Graph

49 Commits

Author SHA1 Message Date
Jörg Mayer 420acb2fba We now always build with MAIN_MENU_USE_UIMANAGER, so remove all code using
the old ways except the proto_help.c file, which is kept for now in case someone
is willing to reimplement the help menus using non-deprecated methods.

svn path=/trunk/; revision=39137
2011-09-25 21:19:45 +00:00
Anders Broman 23fe110f2d Add a few more menu items.
svn path=/trunk/; revision=38623
2011-08-19 14:46:47 +00:00
Jörg Mayer bb7650f70d Fix almost all accesses to ->window
svn path=/trunk/; revision=38151
2011-07-21 20:12:08 +00:00
Jörg Mayer 11f131b303 Fix some compiler errors with -DGTK_DISABLE_DEPRECATED
svn path=/trunk/; revision=38006
2011-07-14 00:04:37 +00:00
Gerald Combs f6d7f90c72 Remove a lot of instances of GTK_CHECK_VERSION. Clean up whitespace in a
couple of places.

svn path=/trunk/; revision=37969
2011-07-11 18:08:08 +00:00
Guy Harris 1372515b02 More eradication of old-style function definitions.
svn path=/trunk/; revision=37216
2011-05-17 22:18:32 +00:00
Bill Meier 9451aa90a7 (Trivial/Cosmetic) Fix signatures of some signal callback functions;
Also:Add some missing G_CALLBACKs (even in commented out code)

svn path=/trunk/; revision=33890
2010-08-23 15:58:48 +00:00
Michael Tüxen 792c7add3a From Robin Seggelmann: Improve SCTP chunk statistics.
svn path=/trunk/; revision=33297
2010-06-23 07:47:15 +00:00
Stig Bjørlykke d195614097 Yet another fix in dlg_destroy().
svn path=/trunk/; revision=30916
2009-11-10 09:30:42 +00:00
Stig Bjørlykke 3946bbe2f2 Fixed a bug in dlg_destroy() to destroy all widgets.
Removed unused variable 'sortable' in create_list().
Removed unused variable 'checksum' in sctp_stat_on_apply_filter().

svn path=/trunk/; revision=30914
2009-11-10 09:08:43 +00:00
Stig Bjørlykke 8ad8a9a233 Return from sctp_stat_on_select_row() if nothing selected.
svn path=/trunk/; revision=30338
2009-10-05 17:52:23 +00:00
Stig Bjørlykke 5f9d734bf8 Corrected prototype for create_list().
svn path=/trunk/; revision=30221
2009-09-30 19:39:33 +00:00
Michael Tüxen 66e738ede6 From Irene Ruengeler: Get rid of legacy gtk code...
svn path=/trunk/; revision=29649
2009-09-01 10:12:27 +00:00
Bill Meier a15bb4beb9 Add #include <stdio.h> in a few more places ....
svn path=/trunk/; revision=29578
2009-08-27 04:47:28 +00:00
Anders Broman 6c25896d84 From Kovarththanan Rajaratnam:
No letter-shortcuts in Telephony menu.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3678

svn path=/trunk/; revision=29028
2009-07-08 18:36:31 +00:00
Guy Harris cf91fdf16b Have tap listeners specify whether the "packet" routine requires
a protocol tree;

	the column values.

This includes stats-tree listeners.

Have the routines to build the packet list, and to retap packets, honor
those requirements.  This means that cf_retap_packets() no longer needs
an argument to specify whether to construct the column values or not, so
get rid of that argument.

This also means that there's no need for a tap to have a fake filter
to ensure that the protocol tree will be built, so don't set up a fake
"frame" filter.

While we're at it, clean up some cases where "no filter" was represented
as a null string rather than a null pointer.

Have a routine to return an indication of the number of tap listeners
with filters; use that rather than the global num_tap_filters.

Clean up some indentation and some gboolean vs. gint items.

svn path=/trunk/; revision=28645
2009-06-05 22:42:47 +00:00
Bill Meier 3224dc5d7a Remove unnecessary use of (deprecated) gtk_button_box_set_child_ipadding();
(In each case the arg values used [4,0] were the same as the defaults).
checkAPIs.pl: gtk_button_box_set_child_ipadding: 'W' --> 'E'

svn path=/trunk/; revision=28030
2009-04-10 18:31:01 +00:00
Stig Bjørlykke f9c4288e09 Bring the windows to front when rescanning of packets are done.
svn path=/trunk/; revision=26438
2008-10-13 18:37:00 +00:00
Bill Meier d3fc3b6c3e Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_button_box_set_spacing()  ==> gtk_box_set_spacing()

svn path=/trunk/; revision=25673
2008-07-08 02:43:40 +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
Ulf Lamping 644a474c95 sort #includes by directories
svn path=/trunk/; revision=24969
2008-04-13 03:32:24 +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 8e58ec7085 last round to replace SIGNAL_CONNECT with g_signal_connect
svn path=/trunk/; revision=24918
2008-04-11 23:16:06 +00:00
Ulf Lamping c6d13dc2c8 replace WIDGET_SET_SIZE with gtk_widget_set_size_request
svn path=/trunk/; revision=24910
2008-04-11 20:31:05 +00:00
Ulf Lamping ae5f841083 replace all appearances of BUTTON_NEW_FROM_STOCK with GTK2's gtk_button_new_from_stock
svn path=/trunk/; revision=24904
2008-04-11 18:58:19 +00:00
Bill Meier df712c8574 Enable esc key for SCTP Associations window.
svn path=/trunk/; revision=22804
2007-09-06 12:46:29 +00:00
Michael Tüxen ab125d0d43 From Irene Ruengeler: Fix TSN handling in graphs.
svn path=/trunk/; revision=21894
2007-05-22 21:16:30 +00:00
Michael Tüxen 7e8098c520 A fix from Irene Ruengeler to keep assocs selected when
setting/applying filters.
Remove some warnings.


svn path=/trunk/; revision=20759
2007-02-09 21:05:43 +00:00
Michael Tüxen ed692e1c8a Improve the handling of INIT/ABORT mesage pairs.
svn path=/trunk/; revision=20608
2007-01-29 20:44:59 +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 f34e1a97c6 Have cf_retap_packets() take an argument that indicates whether to
generate columns; use cf_retap_packets instead of cf_redissect_packets()
when running taps (the general flow graph stat uses the Info column).

svn path=/trunk/; revision=15793
2005-09-14 08:59:41 +00:00
Guy Harris 13e0b409cf As per a suggestion by Ulf Lamping, rename gtk_*.[ch] to gui_*.[ch], so
that it doesn't appear to be part of GTK+.

svn path=/trunk/; revision=15501
2005-08-21 19:24:11 +00:00
Guy Harris a0e68da918 Add a "register_dfilter_stat()", to register stats that take a display
filter as an argument on the command line and have a dialog box to enter
the display filter through the GUI.  Use it for all stats using
"gtk_tap_dfilter_dlg_cb()".

Add a top-level "stat_menu.h" file to declare "REGISTER_STAT_GROUP_E"
for the benefit of the declaration of "register_dfilter_stat()" in the
top-level "tap_dfilter_dlg.h".  Rename the "stat_menu.h" in the gtk
directory to "gtk_stat_menu.h", so as not to have two headers with the
same name.

Get rid of headers not declaring any functions not being used in the
module.

svn path=/trunk/; revision=15493
2005-08-21 09:48:27 +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
Ulf Lamping eafbbbcabb renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical named ui_util.h in / dir
svn path=/trunk/; revision=15465
2005-08-20 12:09:48 +00:00
Guy Harris b2807e2ab6 Move the APIs for registering and processing "-z" command-line arguments
and "Statistics" menu items into "stat.h" and "stat.c", to separate them
from the core tapping APIs.  A tap could conceivably not register as a
"-z" command-line argument or "Statistics" menu item, and a stat could
conceivably not be implemented as a tap, and dissectors that implement
tapping points don't need the UI-related stuff from "stat.h", they just
want the tap-related stuff in <epan/tap.h>.

svn path=/trunk/; revision=15427
2005-08-19 09:29:41 +00:00
Ulf Lamping d28861b607 removed tons of MSVC const related warnings.
This might at some places interfere with the changes for gcc4, we might have to negotiate in that case :-)

Please note that a lot of these warnings were GTK1.x related only!

svn path=/trunk/; revision=15286
2005-08-10 19:49:45 +00:00
Jörg Mayer 62b7cc3043 Last set of char -> const char trivial warning fixes.
svn path=/trunk/; revision=15244
2005-08-06 14:03:14 +00:00
Jörg Mayer f5b39c3ef9 Warning fixes
svn path=/trunk/; revision=15125
2005-07-28 07:51:52 +00:00
Ulf Lamping e571cbfa9d add 12 new toolbar/menu icons
add two toolbar toggle buttons
add icons to various menu items

create new Statistics telephony group and put telephony and alike protocols in it

svn path=/trunk/; revision=14098
2005-04-16 10:53:09 +00:00
Michael Tüxen ab64f95039 From Irene Ruengeler: Bugfixes and support of chunk statistics per end point.
Some cleanups of the code.

svn path=/trunk/; revision=13858
2005-03-22 10:25:07 +00:00
Jörg Mayer 9804663036 Trivial warning fixes
svn path=/trunk/; revision=13691
2005-03-10 12:43:35 +00:00
Guy Harris 55eaf4bbae Get rid of a redundant test.
svn path=/trunk/; revision=13604
2005-03-05 23:44:23 +00:00
Luis Ontanon a33f8ebbad few fixes to The SCTP associations dialog
- do not call main_filter_packets() with a null dfilter string
- fix two leaks


svn path=/trunk/; revision=13531
2005-02-27 13:57:45 +00:00
Ulf Lamping 0861927ce3 huge cleanup of capture file API (functions in file.c/file.h).
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions.

Hopefully, I didn't introduced any new bugs, as I had to change a lot of files...

svn path=/trunk/; revision=13289
2005-02-04 18:44:44 +00:00
Guy Harris bebb2b7705 Get rid of C++/C99-style comments - not all C compilers accept them.
Fix some indentation.

svn path=/trunk/; revision=12710
2004-12-10 11:20:48 +00:00
Guy Harris 9e8d653b21 Set svn:eol-style to native to keep line endings canonicalized.
Set svn:keywords to Id to expand RCS IDs.

svn path=/trunk/; revision=11931
2004-09-07 20:07:08 +00:00
Michael Tüxen 870cb0e20a Added graphical SCTP analysis implemented by Irene Ruengeler.
svn path=/trunk/; revision=11920
2004-09-07 07:54:50 +00:00