diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-11-11 11:37:53 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-11-11 11:37:53 +0000 |
commit | 053dd12cbdfbdc65d65b17263cb367788aeca461 (patch) | |
tree | 4b228b0d4270d6e74944c9812f2428d286aa6383 /gtk/recent.c | |
parent | 1b0b2bb4b6ef73ea3ab59f280e4d7bb82d165fdf (diff) | |
download | wireshark-053dd12cbdfbdc65d65b17263cb367788aeca461.tar.gz |
Rewrote interface type option_menu to gtk_combo_box, this fixes the bug
showing the correct type on connect failure or cancel in the remote
interface dialog.
Added list of recent remote hosts to interface type combo box.
Save the recent remote hosts in the recent file.
Fixed some indents.
svn path=/trunk/; revision=26747
Diffstat (limited to 'gtk/recent.c')
-rw-r--r-- | gtk/recent.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk/recent.c b/gtk/recent.c index 9a7d40e070..ec0c181044 100644 --- a/gtk/recent.c +++ b/gtk/recent.c @@ -51,6 +51,9 @@ #include "gtk/cfilter_combo_utils.h" #include "gtk/u3.h" +#ifdef HAVE_PCAP_REMOTE +#include "gtk/capture_dlg.h" +#endif #define RECENT_KEY_MAIN_TOOLBAR_SHOW "gui.toolbar_main_show" #define RECENT_KEY_FILTER_TOOLBAR_SHOW "gui.filter_toolbar_show" @@ -183,6 +186,15 @@ write_recent(void) "\n", rf); dfilter_recent_combo_write_all(rf); + +#ifdef HAVE_PCAP_REMOTE + fputs("\n" + "######## Recent remote hosts, cannot be altered through command line ########\n" + "\n", rf); + + capture_remote_combo_recent_write_all(rf); +#endif + fprintf(rf, "\n# Main window geometry.\n"); fprintf(rf, "# Decimal numbers.\n"); fprintf(rf, RECENT_GUI_GEOMETRY_MAIN_X ": %d\n", recent.gui_geometry_main_x); @@ -679,6 +691,10 @@ read_set_recent_pair_dynamic(gchar *key, gchar *value, void *private_data _U_) dfilter_combo_add_recent(value); } else if (strcmp(key, RECENT_KEY_CAPTURE_FILTER) == 0) { cfilter_combo_add_recent(value); +#ifdef HAVE_PCAP_REMOTE + } else if (strcmp(key, RECENT_KEY_REMOTE_HOST) == 0) { + capture_remote_combo_add_recent(value); +#endif } return PREFS_SET_OK; |