aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/proto_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2003-08-07From Michael Lum: add the ability to have a preferences file containingGuy Harris1-1/+51
a list of disabled protocols, and to save that list from the Edit > Protocols dialog box. Add checks for read errors in "read_prefs()". Clean up white space. svn path=/trunk/; revision=8144
2003-01-26Update my email address in various places since my old one no longer worksLaurent Deniel1-2/+2
svn path=/trunk/; revision=7003
2002-12-02Put back the "width" local variable in proto_cb() which is used only byOlivier Abad1-2/+4
the GTK1.2 UI. svn path=/trunk/; revision=6715
2002-12-02Make the new protocol list work with GTK2. The "status" column uses aOlivier Abad1-17/+48
toggle button instead of a text. svn path=/trunk/; revision=6714
2002-12-02Allow keyboard-only navigation of the Protocols dialog. Protocols canGerald Combs1-3/+18
be enabled or disabled using the space bar. Update the documentation accordingly. svn path=/trunk/; revision=6711
2002-12-01Enable/disable protocols with a single click. Fix the behavior ofGerald Combs1-13/+16
cancelling the Protocols dialog, which my previous checkin broke. svn path=/trunk/; revision=6710
2002-12-01Update some text in the help dialog.Gerald Combs1-135/+224
Replace the large matrix of protocol togglebuttons with a GtkCList. The CList displays three columns: the enabled/disabled state, the protocol's abbreviated name and the protocol's full name. Protocols can be enabled or disabled by double-clicking on them. The enable all, disable all, and invert buttons were left intact. I made a half-assed attempt at Gtk2 support by copying code from plugins_dlg.c. It's incomplete, and probably won't compile. Using check boxes in the first column instead of the word "Disabled" would have been nice. GtkCLists don't let you embed anything besides text and pixmaps unfortunately. Update the man page accordingly. We still need a way to save a list of disabled protocols. svn path=/trunk/; revision=6707
2002-11-28Constify some pointers to avoid converting const pointers to non-constGuy Harris1-3/+5
pointers. svn path=/trunk/; revision=6685
2002-11-11"gtk_quit_add_destroy()" takes a "GtkObject *" as its second argument inGuy Harris1-2/+2
both GTK+ 1.2[.x] and 2.x, so put the "GTK_OBJECT()" cast back in to squelch a compiler warning. svn path=/trunk/; revision=6612
2002-11-11Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-63/+17
svn path=/trunk/; revision=6610
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-4/+51
svn path=/trunk/; revision=6552
2002-10-10Add (back) some #include <string.h>Jörg Mayer1-1/+2
svn path=/trunk/; revision=6394
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-4/+1
Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-20/+20
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-5/+1
equivalents for the gtk/ directory. svn path=/trunk/; revision=5930
2002-03-31Get rid of an unused argument to "set_active_all()".Guy Harris1-6/+6
Mark as unused arguments that are now unused as a result of not passing them to "set_active_all()". svn path=/trunk/; revision=5065
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris1-8/+8
svn path=/trunk/; revision=4878
2002-01-11Have a routine to create a scrolled window, set its vertical scrollbarGuy Harris1-7/+3
preference, and add it to the list of scrolled windows; call that routine to create scrolled windows, rather than creating it and calling other routines to do the other two operations. As "set_scrollbar_placement_all()" and "set_ctree_styles_all()" always set the styles to match the user's preference, don't have them take an argument, have them just use the user's preference settings. Get rid of unnecessary includes of "prefs_dlg.h", replacing them with includes of "prefs.h" if necessary. Don't have "prefs_dlg.h" include "prefs.h" - its sole purpose is to declare routines defined in "prefs_dlg.c" - and add any additional includes of "prefs.h" this requires. Get rid of unnecessary includes of "prefs.h" and "gtkglobals.h". Fix up white space. svn path=/trunk/; revision=4521
2001-03-01Add "Toggle All", "Enable All", and "Disable All" buttons to theGilbert Ramirez1-2/+86
protocol GUI. svn path=/trunk/; revision=3091
2001-01-22Make the "Cancel" button in the "Protocol" dialog box, as well as aGuy Harris1-9/+58
delete event on that window, revert all the protocol enabling settings to the values they had when the dialog box was first popped up. svn path=/trunk/; revision=2934
2001-01-03Have "proto_register_protocol()" build a list of data structures forGuy Harris1-48/+28
protocols, in addition to adding structures to the list of filterable fields. Give it an extra argument that specifies a "short name" for the protocol, for use in such places as pinfo->current_proto; the dialog box for constructing filters; the preferences tab for the protocol; and so on (although we're not yet using it in all those places). Make the preference name that appears in the preferences file and the command line for the DIAMETER protocol "diameter", not "Diameter"; the convention is that the name in question be all-lower-case. Make some routines and variables that aren't exported static. Update a comment in the ICP dissector to make it clear that the dissector won't see fragments other than the first fragment of a fragmented datagram. svn path=/trunk/; revision=2810
2000-08-23Bleah. What was I thinking? "dlg_window_new()" should take the titleGuy Harris1-3/+2
for the dialog window as an argument (as various dialog creators in GTK+ do), not oblige every caller of it to cut-and-paste a "gtk_window_set_title()" call after it. svn path=/trunk/; revision=2345
2000-08-17It was silly of me to require that "forget_scrolled_window()" be calledGuy Harris1-30/+11
explicitly; the right thing to do was to have "remember_scrolled_window()" catch the "destroy" signal on the scrolled window widget, and have the handler for that signal forget the scrolled window. Doing that obviates the need to have creators of scrolled windows keep track of the windows they have and forget them when they're destroyed. The signal for a "the window manager has requested that this window go away" event is "delete_event", not "delete-event"; fix the "gtk_signal_connect()" calls that were using "delete-event". svn path=/trunk/; revision=2284
2000-08-16Fix a long standing bug in the scrolled window handling in follow TCP streamLaurent Deniel1-11/+30
which make ethereal aborts if the preferences were modified (or cancel) after the TCP window was closed. Fix the same bug in the other scrolled window handling (help & protocols). (forget_scrolled_window() was not called at the window closure). svn path=/trunk/; revision=2283
2000-08-16The "Edit:protocols..." window is now sorted.Laurent Deniel1-57/+77
svn path=/trunk/; revision=2282
2000-08-13Add the "Edit:Protocols..." feature which currently only implementsLaurent Deniel1-0/+287
the following: It is now possible to enable/disable a particular protocol decoding (i.e. the protocol dissector is void or not). When a protocol is disabled, it is displayed as Data and of course, all linked sub-protocols are disabled as well. Disabling a protocol could be interesting: - in case of buggy dissectors - in case of wrong heuristics - for performance reasons - to decode the data as another protocol (TODO) Currently (if I am not wrong), all dissectors but NFS can be disabled (and dissectors that do not register protocols :-) I do not like the way the RPC sub-dissectors are disabled (in the sub-dissectors) since this could be done in the RPC dissector itself, knowing the sub-protocol hfinfo entry (this is why, I've not modified the NFS one yet). Two functions are added in proto.c : gboolean proto_is_protocol_enabled(int n); void proto_set_decoding(int n, gboolean enabled); and two MACROs which can be used in dissectors: OLD_CHECK_DISPLAY_AS_DATA(index, pd, offset, fd, tree) CHECK_DISPLAY_AS_DATA(index, tvb, pinfo, tree) See also the XXX in proto_dlg.c and proto.c around the new functions. svn path=/trunk/; revision=2267