aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/asn1/packet-asn1.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2012-06-13 01:13:12 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2012-06-13 01:13:12 +0000
commit4fdc3c3cc2f7796187651d5d987debd438d23521 (patch)
tree0758e88c61334cffbb722b80e6c2200fc77e6884 /plugins/asn1/packet-asn1.c
parentf0a74f3a5c90cfd6418905d1f7a02c1d59a63a7f (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/asn1/packet-asn1.c')
-rw-r--r--plugins/asn1/packet-asn1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c
index a9f50b46ab..394dd58c48 100644
--- a/plugins/asn1/packet-asn1.c
+++ b/plugins/asn1/packet-asn1.c
@@ -5311,10 +5311,10 @@ proto_register_asn1(void) {
#endif
orig_ptr = asn1_filename;
- prefs_register_string_preference(asn1_module, "file",
- "ASN.1 type table file",
- "Compiled ASN.1 description of ASN.1 types",
- &asn1_filename);
+ prefs_register_filename_preference(asn1_module, "file",
+ "ASN.1 type table file",
+ "Compiled ASN.1 description of ASN.1 types",
+ &asn1_filename);
/* prefs_register_string_preference just overwrite our pointer with a pointer
* to a _copy_ of our string. Free the original string.
*/