diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-11-21 23:54:10 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-11-21 23:54:10 +0000 |
commit | fcd119d834023122b8c1f37586acb2510743086f (patch) | |
tree | ac14477f29c8c86817ad58caf63b37cb7c5895b4 /prefs.h | |
parent | f8d8ac9df63e9566582aca55fd658252475bf5b2 (diff) | |
download | wireshark-fcd119d834023122b8c1f37586acb2510743086f.tar.gz wireshark-fcd119d834023122b8c1f37586acb2510743086f.tar.bz2 wireshark-fcd119d834023122b8c1f37586acb2510743086f.zip |
Add a "color.h" file that declares a nominally-toolkit-independent
"color_t" structure to store color values (although currently it has all
the same fields that a GdkColor has; its currently advantage is that you
don't have to include any GTK/GDK stuff to declare it).
Add routines in the "gtk" directory to convert between "color_t" and
GdkColor values.
Define, in "prefs.h", all colors as "color_t" values rather than
GdkColor values. "prefs.h" now no longer needs to include <gtk/gtk.h>,
so don't include it.
svn path=/trunk/; revision=2692
Diffstat (limited to 'prefs.h')
-rw-r--r-- | prefs.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,7 +1,7 @@ /* prefs.h * Definitions for preference handling routines * - * $Id: prefs.h,v 1.25 2000/11/18 21:41:36 guy Exp $ + * $Id: prefs.h,v 1.26 2000/11/21 23:54:08 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -26,13 +26,13 @@ #ifndef __PREFS_H__ #define __PREFS_H__ +#include <glib.h> + +#include "color.h" + #define PR_DEST_CMD 0 #define PR_DEST_FILE 1 -#ifndef __GTK_H__ -#include <gtk/gtk.h> -#endif - typedef struct _e_prefs { gint pr_format; gint pr_dest; @@ -40,7 +40,7 @@ typedef struct _e_prefs { gchar *pr_cmd; GList *col_list; gint num_cols; - GdkColor st_client_fg, st_client_bg, st_server_fg, st_server_bg; + color_t st_client_fg, st_client_bg, st_server_fg, st_server_bg; gboolean gui_scrollbar_on_right; gboolean gui_plist_sel_browse; gboolean gui_ptree_sel_browse; @@ -48,8 +48,8 @@ typedef struct _e_prefs { gint gui_ptree_expander_style; gboolean gui_hex_dump_highlight_style; gchar *gui_font_name; - GdkColor gui_marked_fg; - GdkColor gui_marked_bg; + color_t gui_marked_fg; + color_t gui_marked_bg; } e_prefs; extern e_prefs prefs; |