aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/column_prefs.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-08-21 08:09:17 +0000
committerGuy Harris <guy@alum.mit.edu>2000-08-21 08:09:17 +0000
commit023bf363b5abf534228537a71acd1dc1bfb474de (patch)
tree06cb8393e5ca61235f98360aa58142be828252b1 /gtk/column_prefs.h
parent352f8f1603aa76143273d9f9130d8f149f508522 (diff)
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. svn path=/trunk/; revision=2316
Diffstat (limited to 'gtk/column_prefs.h')
-rw-r--r--gtk/column_prefs.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/column_prefs.h b/gtk/column_prefs.h
index 3a4f146267..9671f11e1f 100644
--- a/gtk/column_prefs.h
+++ b/gtk/column_prefs.h
@@ -1,7 +1,7 @@
/* gui_prefs.h
* Definitions for column preferences window
*
- * $Id: column_prefs.h,v 1.1 2000/01/10 01:43:58 guy Exp $
+ * $Id: column_prefs.h,v 1.2 2000/08/21 08:09:10 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -24,7 +24,6 @@
*/
GtkWidget *column_prefs_show(void);
-void column_prefs_ok(GtkWidget *);
-void column_prefs_save(GtkWidget *);
-void column_prefs_cancel(GtkWidget *);
-void column_prefs_delete(GtkWidget *);
+void column_prefs_fetch(GtkWidget *);
+void column_prefs_apply(GtkWidget *);
+void column_prefs_destroy(GtkWidget *);