diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-06-13 01:13:12 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2012-06-13 01:13:12 +0000 |
commit | 4fdc3c3cc2f7796187651d5d987debd438d23521 (patch) | |
tree | 0758e88c61334cffbb722b80e6c2200fc77e6884 /plugins/mate/packet-mate.c | |
parent | f0a74f3a5c90cfd6418905d1f7a02c1d59a63a7f (diff) |
Create, and start using, file name preferences.
File name preferences are basically just string preferences except that the
GUI will present a "Browse" button that allows the user to go and find the
file s/he wants (rather than having to blindly type in the full path).
svn path=/trunk/; revision=43228
Diffstat (limited to 'plugins/mate/packet-mate.c')
-rw-r--r-- | plugins/mate/packet-mate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mate/packet-mate.c b/plugins/mate/packet-mate.c index 2ed67a57e3..5aa8a2a36f 100644 --- a/plugins/mate/packet-mate.c +++ b/plugins/mate/packet-mate.c @@ -372,10 +372,10 @@ proto_register_mate(void) proto_mate = proto_register_protocol("Meta Analysis Tracing Engine", "MATE", "mate"); register_dissector("mate",mate_tree,proto_mate); mate_module = prefs_register_protocol(proto_mate, proto_reg_handoff_mate); - prefs_register_string_preference(mate_module, "config", - "Configuration Filename", - "The name of the file containing the mate module's configuration", - &pref_mate_config_filename); + prefs_register_filename_preference(mate_module, "config", + "Configuration Filename", + "The name of the file containing the mate module's configuration", + &pref_mate_config_filename); mate_handle = find_dissector("mate"); register_postdissector(mate_handle); |