/* prefs.h
* Definitions for preference handling routines
*
- * $Id: prefs.h,v 1.47 2003/10/02 21:06:11 guy Exp $
+ * $Id: prefs.h,v 1.57 2004/04/06 19:02:17 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
#define MAX_VAL_LEN 1024
+/* only GTK1 *or* GTK2 font_name should be used */
+#if GTK_MAJOR_VERSION < 2
+#define PREFS_GUI_FONT_NAME gui_font_name1
+#else
+#define PREFS_GUI_FONT_NAME gui_font_name2
+#endif
+
/*
* Convert a string listing name resolution types to a bitmask of
* those types.
*/
char string_to_name_resolve(char *string, guint32 *name_resolve);
+/*
+ * Modes for the starting directory in File Open dialogs.
+ */
+#define FO_STYLE_LAST_OPENED 0 /* start in last directory we looked at */
+#define FO_STYLE_SPECIFIED 1 /* start in specified directory */
+
+/*
+ * Toolbar styles.
+ */
+#define TB_STYLE_ICONS 0
+#define TB_STYLE_TEXT 1
+#define TB_STYLE_BOTH 2
+
typedef struct _e_prefs {
gint pr_format;
gint pr_dest;
gboolean gui_plist_sel_browse;
gboolean gui_ptree_sel_browse;
gboolean gui_altern_colors;
+ gboolean filter_toolbar_show_in_statusbar;
gint gui_ptree_line_style;
gint gui_ptree_expander_style;
gboolean gui_hex_dump_highlight_style;
- gchar *gui_font_name;
+ gint gui_toolbar_main_style;
+ gchar *gui_font_name1;
+ gchar *gui_font_name2;
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;
+ gboolean gui_geometry_save_maximized;
+ guint gui_fileopen_style;
+ guint gui_recent_files_count_max;
+ gchar *gui_fileopen_dir;
guint32 name_resolve;
gint name_resolve_concurrency;
gchar *capture_device;