diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-03-28 03:33:45 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-03-28 10:34:15 +0000 |
commit | 6b929abe6957f4c2cb27760daa1a248ac73c1b88 (patch) | |
tree | bc6bef2c48f12f8857af0081cc83a9d13307e748 /ui/gtk | |
parent | bd486eb9b16640af51fb58995ff59c1434737dc2 (diff) |
Don't wire in 262144, use WTAP_MAX_PACKET_SIZE.
That way, if we ever increase WTAP_MAX_PACKET_SIZE, this code won't need
to be changed.
Change-Id: I68d21e10810b7b8a4732d9ecf7e145668b0fe1cb
Reviewed-on: https://code.wireshark.org/review/20761
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/file_import_dlg.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/gtk/file_import_dlg.c b/ui/gtk/file_import_dlg.c index 19ae0dbd90..81f4b27234 100644 --- a/ui/gtk/file_import_dlg.c +++ b/ui/gtk/file_import_dlg.c @@ -850,6 +850,7 @@ file_import_dlg_new(void) *dst_port_te, *tag_te, *ppi_te, *framelen_hb, *framelen_lbl, *framelen_te, *bbox, *help_bt, *close_bt, *ok_bt; + gchar *maxsize_msg; /* Setup the dialog */ @@ -1153,8 +1154,10 @@ file_import_dlg_new(void) gtk_box_pack_start(GTK_BOX(framelen_hb), framelen_lbl, FALSE, FALSE, 0); framelen_te = gtk_entry_new(); - gtk_widget_set_tooltip_text(framelen_te, - "The maximum size of the frames to write to the import capture file (max 262144)"); + maxsize_msg = g_strdup_printf("The maximum size of the frames to write to the import capture file (max %u)", + WTAP_MAX_PACKET_SIZE); + gtk_widget_set_tooltip_text(framelen_te, maxsize_msg); + g_free(maxsize_msg); gtk_box_pack_start(GTK_BOX(framelen_hb), framelen_te, FALSE, FALSE, 0); g_object_set_data(G_OBJECT(import_frm), IMPORT_FRAME_LENGTH_TE_KEY, framelen_te); |