diff options
author | Gerald Combs <gerald@wireshark.org> | 1998-10-28 21:38:11 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 1998-10-28 21:38:11 +0000 |
commit | 06e5aae0e3946b453377f7d824ef43961dfa47aa (patch) | |
tree | b372423ae62551ea536da9d5edca5d65efa00353 /ethereal.c | |
parent | 3b9dda5d6bd434cc5f75b30b08b4ac2d5d33f04c (diff) |
* Added preference file saves and reads.
svn path=/trunk/; revision=75
Diffstat (limited to 'ethereal.c')
-rw-r--r-- | ethereal.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/ethereal.c b/ethereal.c index faec036d2f..fe12d4755b 100644 --- a/ethereal.c +++ b/ethereal.c @@ -1,6 +1,6 @@ /* ethereal.c * - * $Id: ethereal.c,v 1.8 1998/10/16 06:44:32 guy Exp $ + * $Id: ethereal.c,v 1.9 1998/10/28 21:38:07 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -60,11 +60,11 @@ #include "file.h" #include "menu.h" #include "etypes.h" +#include "prefs.h" #include "print.h" #include "resolv.h" #include "follow.h" #include "util.h" -#include "prefs.h" FILE *data_out_file = NULL; packet_info pi; @@ -76,8 +76,6 @@ guint main_ctx, file_ctx; frame_data *fd; gint start_capture = 0; -extern pr_opts printer_opts; - ts_type timestamp_type = RELATIVE; #define E_DFILTER_TE_KEY "display_filter_te" @@ -387,6 +385,8 @@ main(int argc, char *argv[]) cf.save_file = NULL; cf.snap = 68; cf.count = 0; + + read_prefs(); /* Let GTK get its args */ gtk_init (&argc, &argv); @@ -465,13 +465,6 @@ main(int argc, char *argv[]) sprintf(rc_file, "%s/%s", getenv("HOME"), RC_FILE); gtk_rc_parse(rc_file); - /* initialize printer options. temporary! we should only initialize - * if the options are not set in some ethereal initialization file */ - printer_opts.output_format = 0; - printer_opts.output_dest = 0; - printer_opts.file = g_strdup("ethereal.out"); - printer_opts.cmd = g_strdup("lpr"); - if ((m_r_font = gdk_font_load(medium_font)) == NULL) { fprintf(stderr, "Error font %s not found (use -m option)\n", medium_font); exit(1); |