diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2003-12-13 18:01:30 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2003-12-13 18:01:30 +0000 |
commit | 156be8aa9ffc57c5bf08228b2c7d9222b96889a9 (patch) | |
tree | a7a4a41dd3212e66b450bc79c50a842ab09133b2 /file.c | |
parent | 792fb5f8fb409c9241f197894a36fcfea5e8539c (diff) |
added "most recently used" lists for
"opened capture files" and "display filter used",
the settings will be saved in the file "recent" in the users config path
svn path=/trunk/; revision=9275
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* file.c * File I/O routines * - * $Id: file.c,v 1.329 2003/12/09 22:41:06 ulfl Exp $ + * $Id: file.c,v 1.330 2003/12/13 18:01:29 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -297,6 +297,12 @@ set_display_filename(capture_file *cf) gchar *win_name; name_ptr = cf_get_display_name(cf); + + if (!cf->is_tempfile) { + /* Add this filename to the list of recent files in the "Recent Files" submenu */ + add_menu_recent_capture_file(cf->filename); + } + if (cf->drops_known) { msg_len = strlen(name_ptr) + strlen(done_fmt_drops) + 64; done_msg = g_malloc(msg_len); @@ -640,6 +646,9 @@ cf_get_display_name(capture_file *cf) /* Get the last component of the file name, and use that. */ if (cf->filename){ displayname = get_basename(cf->filename); + + /* Add this filename to the list of recent files in the "Recent Files" submenu */ + add_menu_recent_capture_file(cf->filename); } else { displayname="<no file>"; } |