aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/stream_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/stream_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/stream_prefs.h')
-rw-r--r--gtk/stream_prefs.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/stream_prefs.h b/gtk/stream_prefs.h
index e648cc66f1..b9ea1f9156 100644
--- a/gtk/stream_prefs.h
+++ b/gtk/stream_prefs.h
@@ -1,7 +1,7 @@
/* stream_prefs.h
* Definitions for stream preferences window
*
- * $Id: stream_prefs.h,v 1.2 2000/08/11 13:32:56 deniel Exp $
+ * $Id: stream_prefs.h,v 1.3 2000/08/21 08:09:17 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -27,9 +27,8 @@
#define __STREAM_PREFS_H__
GtkWidget *stream_prefs_show(void);
-void stream_prefs_ok(GtkWidget *w);
-void stream_prefs_save(GtkWidget *w);
-void stream_prefs_cancel(GtkWidget *w);
-void stream_prefs_delete(GtkWidget *w);
+void stream_prefs_fetch(GtkWidget *w);
+void stream_prefs_apply(GtkWidget *w);
+void stream_prefs_destroy(GtkWidget *w);
#endif