aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/gtkglobals.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-08-21 08:09:17 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-08-21 08:09:17 +0000
commit11967f5dc9178ccb9c7ff59986e02ab928297668 (patch)
tree06cb8393e5ca61235f98360aa58142be828252b1 /gtk/gtkglobals.h
parentbb73bcbcd3e457f2b4f9602f00a8d8b575442595 (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2316 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/gtkglobals.h')
-rw-r--r--gtk/gtkglobals.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/gtk/gtkglobals.h b/gtk/gtkglobals.h
index d553bd2b91..35ceded245 100644
--- a/gtk/gtkglobals.h
+++ b/gtk/gtkglobals.h
@@ -1,7 +1,7 @@
/* gtkglobals.h
* GTK-related Global defines, etc.
*
- * $Id: gtkglobals.h,v 1.10 2000/08/17 07:56:34 guy Exp $
+ * $Id: gtkglobals.h,v 1.11 2000/08/21 08:09:11 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -39,12 +39,9 @@ extern GtkStyle *item_style;
void set_scrollbar_placement_scrollw(GtkWidget *, int); /* 0=left, 1=right */
void set_scrollbar_placement_all(int); /* 1=right, 0=left */
void remember_scrolled_window(GtkWidget *);
+
+
void set_plist_sel_browse(gboolean);
-void set_ptree_sel_browse(GtkWidget *, gboolean);
-void set_ptree_sel_browse_all(gboolean);
-void set_ptree_line_style(GtkWidget *, gint style);
-void set_ptree_line_style_all(gint style);
-void set_ptree_expander_style(GtkWidget *, gint style);
-void set_ptree_expander_style_all(gint style);
+void set_plist_font(GdkFont *font);
#endif