Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal/gtk column_prefs.c column_prefs.h gt

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 21 Aug 2000 03:09:29 -0500 (CDT)
guy         2000/08/21 03:09:27 CDT

  Modified files:
    gtk                  column_prefs.c column_prefs.h 
                         gtkglobals.h gui_prefs.c gui_prefs.h 
                         main.c packet_win.c packet_win.h 
                         prefs_dlg.c print_prefs.c print_prefs.h 
                         proto_draw.c proto_draw.h stream_prefs.c 
                         stream_prefs.h 
  Log:
  Instead of each set of built-in preferences having "ok", "save",
  "cancel", and "delete" methods, give them:
  
  	"fetch" - fetch from the notebook tab any values not already
  	stored in "prefs", and store them there, but doesn't apply them;
  
  	"apply" - apply the settings in "prefs";
  
  	"destroy" - clean up any windows created from the tab.
  
  As we no longer have "cancel" methods, we don't have per-preference code
  to revert preference values; instead, we have the common preference
  dialog box code make a copy of all the current preferences, and, when
  the "Cancel" button is clicked, free the current preferences and copy
  the saved preferences to it, and apply the preferences.
  
  Add an "Apply" button to the preference dialog box, which applies the
  current preferences without closing the dialog box.
  
  Treat a request to delete the preferences dialog box as equivalent to
  clicking "Cancel".
  
  Have a "remember_ptree_widget()" routine to remember all protocol tree
  widgets, and use the list of those widgets when we set GUI preferences
  for the protocol tree widgets, rather than setting the main protocol
  tree widget and then using the list of packet windows.  Move that code
  out of "main.c" to "proto_draw.c", as it's not used by anything in
  "main.c", but is used by stuff in "proto_draw.c".
  
  Make the font one of the preferences we can set on the fly for protocol
  tree widgets.  Also make it something we can set on the fly for the
  packet list widget.
  
  Revision  Changes    Path
  1.3       +4 -12     ethereal/gtk/column_prefs.c
  1.2       +4 -5      ethereal/gtk/column_prefs.h
  1.11      +4 -7      ethereal/gtk/gtkglobals.h
  1.7       +34 -68    ethereal/gtk/gui_prefs.c
  1.3       +4 -5      ethereal/gtk/gui_prefs.h
  1.143     +23 -72    ethereal/gtk/main.c
  1.12      +1 -46     ethereal/gtk/packet_win.c
  1.4       +1 -4      ethereal/gtk/packet_win.h
  1.21      +123 -24   ethereal/gtk/prefs_dlg.c
  1.7       +14 -19    ethereal/gtk/print_prefs.c
  1.5       +4 -5      ethereal/gtk/print_prefs.h
  1.18      +130 -2    ethereal/gtk/proto_draw.c
  1.7       +7 -1      ethereal/gtk/proto_draw.h
  1.3       +4 -13     ethereal/gtk/stream_prefs.c
  1.3       +4 -5      ethereal/gtk/stream_prefs.h