aboutsummaryrefslogtreecommitdiffstats
path: root/prefs.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-01-20 18:47:25 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-01-20 18:47:25 +0000
commitef57df088f4c62d2b49b7a06ccceb7c0df10dff9 (patch)
tree73d347c23e8b498132f3e90674cd798bb6f4c638 /prefs.h
parent3172f21ea58c044aeffe90501dbcecf9b9f9fc21 (diff)
a.) saving GTK1 and GTK2 fontnames in different preference setting, to prevent problems when switching between GTK1 and GTK2 ethereal versions
b.) added new feature "Edit->Go To First Packet" "Edit->Go To Last Packet" with corresponding menu and toolbar items c.) added new feature "View->Zoom In" / "View->Zoom Out" / View->Normal Size" with corresponding menu and toolbar items This feature will act as a "size offset" to the current fontsize, so that the packet list/tree view/... will have a larger/smaller font size. The value is stored inside the recent file. d.) Win32 only: Try to get the win32 system font and fontsize at program startup and show the menus/dialogs and such with the same font and fontsize like other win32 windows. This makes the program make a *lot* more feel like a normal win32 program. svn path=/trunk/; revision=9753
Diffstat (limited to 'prefs.h')
-rw-r--r--prefs.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/prefs.h b/prefs.h
index 4006906d12..d573949d1d 100644
--- a/prefs.h
+++ b/prefs.h
@@ -1,7 +1,7 @@
/* prefs.h
* Definitions for preference handling routines
*
- * $Id: prefs.h,v 1.54 2004/01/19 00:42:08 ulfl Exp $
+ * $Id: prefs.h,v 1.55 2004/01/20 18:47:22 ulfl Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -37,6 +37,13 @@
#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.
@@ -75,7 +82,8 @@ typedef struct _e_prefs {
gint gui_ptree_expander_style;
gboolean gui_hex_dump_highlight_style;
gint gui_toolbar_main_style;
- gchar *gui_font_name;
+ gchar *gui_font_name1;
+ gchar *gui_font_name2;
color_t gui_marked_fg;
color_t gui_marked_bg;
gboolean gui_geometry_save_position;