diff options
author | Gerald Combs <gerald@wireshark.org> | 2001-12-31 04:41:50 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2001-12-31 04:41:50 +0000 |
commit | 30c5551caa87a95fcbe75dd9df654ffd8464f305 (patch) | |
tree | 78e05cec6ec91f3bd339f77a4559aab80ce43cde /prefs.h | |
parent | 0fa63e3baf23d875f85df2039a43945e14840ec8 (diff) | |
download | wireshark-30c5551caa87a95fcbe75dd9df654ffd8464f305.tar.gz wireshark-30c5551caa87a95fcbe75dd9df654ffd8464f305.tar.bz2 wireshark-30c5551caa87a95fcbe75dd9df654ffd8464f305.zip |
Add preferences to save the main window size and position. If enabled,
the geometry is saved at exit. Should we save the main window pane
sizes as well?
Move the DEF_WIDTH and DEF_HEIGHT #defines from gtk/main.h to prefs.h.
Remove the reference to DEF_WIDTH from proto_hier_stats_dlg.c.
svn path=/trunk/; revision=4462
Diffstat (limited to 'prefs.h')
-rw-r--r-- | prefs.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* prefs.h * Definitions for preference handling routines * - * $Id: prefs.h,v 1.34 2001/11/04 02:50:19 guy Exp $ + * $Id: prefs.h,v 1.35 2001/12/31 04:41:48 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -32,6 +32,9 @@ #define PR_DEST_CMD 0 #define PR_DEST_FILE 1 +#define DEF_WIDTH 750 +#define DEF_HEIGHT 550 + /* 32 types are sufficient (as are 640k of RAM) */ /* FIXME: Maybe MANUF/m, IP/i, IP6/6, IPX/x, UDP+TCP/t etc would be more useful/consistent */ @@ -67,6 +70,12 @@ typedef struct _e_prefs { gchar *gui_font_name; color_t gui_marked_fg; color_t gui_marked_bg; + gboolean gui_geometry_save_position; + gboolean gui_geometry_save_size; + gint gui_geometry_main_x; + gint gui_geometry_main_y; + gint gui_geometry_main_width; + gint gui_geometry_main_height; guint32 name_resolve; gboolean capture_prom_mode; gboolean capture_real_time; |