diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-05-27 16:50:16 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-05-27 16:50:16 +0000 |
commit | 54fe7e9e938aaa3d2f01a466eaba4723d17ae06f (patch) | |
tree | 868c84ce8886431cbce24d662d175a74e1c17b67 /gtk/gui_prefs.c | |
parent | e22528662a1754957d2dc0d3bc6cba2f5165e1c1 (diff) | |
download | wireshark-54fe7e9e938aaa3d2f01a466eaba4723d17ae06f.tar.gz wireshark-54fe7e9e938aaa3d2f01a466eaba4723d17ae06f.tar.bz2 wireshark-54fe7e9e938aaa3d2f01a466eaba4723d17ae06f.zip |
a lot of code cleanup
svn path=/trunk/; revision=11017
Diffstat (limited to 'gtk/gui_prefs.c')
-rw-r--r-- | gtk/gui_prefs.c | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/gtk/gui_prefs.c b/gtk/gui_prefs.c index 9bb8bf63e0..59050de105 100644 --- a/gtk/gui_prefs.c +++ b/gtk/gui_prefs.c @@ -1,7 +1,7 @@ /* gui_prefs.c * Dialog box for GUI preferences * - * $Id: gui_prefs.c,v 1.70 2004/05/24 02:25:20 guy Exp $ + * $Id: gui_prefs.c,v 1.71 2004/05/27 16:50:15 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -321,38 +321,8 @@ gui_prefs_show(void) GtkWidget * gui_font_prefs_show(void) { -#if 0 -#if GTK_MAJOR_VERSION < 2 - static gchar *fixedwidths[] = { "c", "m", NULL }; -#endif -#endif - - /* Now create a new widget. */ + /* Create the font selection widget. */ font_browse_w = (GtkWidget *) gtk_font_selection_new(); - - /*gtk_font_selection_set_preview_text(GTK_FONT_SELECTION(font_browse_w), - "WWWWWWWW llllllll (Tip: use a fixed width font)");*/ - -#if 0 - /* GTK (at least version 1.3) has an annoying bug: */ - /* when using the font selection instead of the dialog, */ - /* the widget seems to disconnected from the parent, */ - /* if a filter is used! */ -#if GTK_MAJOR_VERSION < 2 - /* Set its filter to show only fixed_width fonts. */ - gtk_font_selection_set_filter( - GTK_FONT_SELECTION(font_browse_w), - GTK_FONT_FILTER_BASE, /* user can't change the filter */ - GTK_FONT_ALL, /* bitmap or scalable are fine */ - NULL, /* all foundries are OK */ - NULL, /* all weights are OK (XXX - normal only?) */ - NULL, /* all slants are OK (XXX - Roman only?) */ - NULL, /* all setwidths are OK */ - fixedwidths, /* ONLY fixed-width fonts */ - NULL); /* all charsets are OK (XXX - ISO 8859/1 only?) */ -#endif -#endif - gtk_widget_show(font_browse_w); return font_browse_w; @@ -507,6 +477,7 @@ gui_prefs_apply(GtkWidget *w _U_) { #ifdef _WIN32 + /* user immediately wants to see a console */ if (prefs.gui_console_open == console_open_always) { create_console(); } |