chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3f31508
)
Added filters to file chooser example
author
espen
<espen>
Sun, 27 Feb 2005 14:24:49 +0000
(14:24 +0000)
committer
espen
<espen>
Sun, 27 Feb 2005 14:24:49 +0000
(14:24 +0000)
examples/testgtk.lisp
patch
|
blob
|
blame
|
history
diff --git
a/examples/testgtk.lisp
b/examples/testgtk.lisp
index 6ea078906edc70737396f203ad04fb0b54620d24..76edeadc55df7e1999226c77015ecfd937b3139e 100644
(file)
--- a/
examples/testgtk.lisp
+++ b/
examples/testgtk.lisp
@@
-15,7
+15,7
@@
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-;; $Id: testgtk.lisp,v 1.2
1 2005-02-27 13:28:1
9 espen Exp $
+;; $Id: testgtk.lisp,v 1.2
2 2005-02-27 14:24:4
9 espen Exp $
;(use-package "GTK")
;(use-package "GTK")
@@
-452,6
+452,12
@@
(define-simple-dialog create-expander (dialog "Expander" :resizable nil)
;; File chooser dialog
(define-dialog create-file-chooser (dialog "File Chooser" 'file-chooser-dialog)
;; File chooser dialog
(define-dialog create-file-chooser (dialog "File Chooser" 'file-chooser-dialog)
+ (file-chooser-add-filter dialog
+ (make-instance 'file-filter :name "All files" :pattern "*"))
+ (file-chooser-add-filter dialog
+ (make-instance 'file-filter :name "Common Lisp source code"
+ :patterns '("*.lisp" "*.lsp")))
+
(dialog-add-button dialog "gtk-cancel" #'widget-destroy :object t)
(dialog-add-button dialog "gtk-ok"
#'(lambda ()
(dialog-add-button dialog "gtk-cancel" #'widget-destroy :object t)
(dialog-add-button dialog "gtk-ok"
#'(lambda ()