view tests/gtk/gtk-extra-test.el @ 1692:6265c9c31f53

[xemacs-hg @ 2003-09-18 05:13:54 by youngs] 2003-09-18 Steve Youngs <youngs@xemacs.org> * configure: Re-generate after Martin's configure.in patch. 2003-09-13 Martin Buchholz <martin@xemacs.org> * configure.in (OS_RELEASE): Add support for SunOS 5.10. On current OSes produced by Sun, `uname -r' prints "5.9". It seems likely that on future OSes, `uname -r' will print "5.10". We need to accept multi-digit release numbers. 2003-09-13 Martin Buchholz <martin@xemacs.org> * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
author youngs
date Thu, 18 Sep 2003 05:14:00 +0000
parents 0784d089fdc9
children db7068430402
line wrap: on
line source

(require 'gtk-extra)

(gtk-define-test
 "Color Combo" extra color-combo nil
 (let ((combo (gtk-color-combo-new)))
   (gtk-box-pack-start window combo nil nil 0)))

(gtk-define-test
 "Directory Tree" extra dirtree nil
 (let ((dir (gtk-dir-tree-new)))
   (gtk-box-pack-start window dir nil nil 0)
   (gtk-dir-tree-open-dir dir "/")))

(gtk-define-test
 "File List" extra filelist nil
 (let ((scrolled (gtk-scrolled-window-new nil nil))
       (list (gtk-file-list-new 32 2 "/")))
   (gtk-scrolled-window-add-with-viewport scrolled list)
   (put scrolled 'height 200)
   (gtk-box-pack-start window scrolled t t 0)))

(gtk-define-test
 "Font Combo" extra fontcombo nil
 (let ((fc (gtk-font-combo-new)))
   (gtk-box-pack-start window fc t t 0)))