Split the glob patterns on ";", and add them all to the gtk dialog.
This commit is contained in:
parent
54fea48cc5
commit
42fe92cd25
|
@ -91,7 +91,9 @@
|
|||
(gtk_file_filter_set_name ff (if (equal? glob "*")
|
||||
name
|
||||
(format "~a (~a)" name glob)))
|
||||
(gtk_file_filter_add_pattern ff glob)
|
||||
(for ([glob (in-list (regexp-split #rx" *; *" glob))]
|
||||
#:when ((string-length glob) . > . 0))
|
||||
(gtk_file_filter_add_pattern ff glob))
|
||||
(gtk_file_chooser_add_filter dlg ff))]))
|
||||
(define ans (and (eq? 'accept (show-dialog dlg))
|
||||
(if (eq? type 'multi)
|
||||
|
|
Loading…
Reference in New Issue
Block a user