source: trunk/third/rep-gtk/examples/gnome-test @ 18404

Revision 18404, 705 bytes checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18403, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2exec rep "$0" "$@"
3!#
4
5(require 'gui.gtk-2.gtk)
6(require 'gui.gtk-2.gnome-ui)
7
8(let
9    ((req (gnome-about-new
10           "Testing" "0.0" "(C) 2000 John Harper"
11           '("John Harper (john@dcs.warwick.ac.uk)" "Marius Vollmer")
12           "This is a test!")))
13  (g-signal-connect req "destroy" gtk-main-quit)
14  (gtk-widget-show req)
15  (gtk-main))
16
17(let
18    ((req (gnome-ok-cancel-dialog
19           "Foo?" (lambda args
20                    (format standard-error "foo: %S\n" args)
21                    (gtk-main-quit)))))
22  (gtk-widget-show req)
23  (gtk-main))
24
25(let
26    ((req (gnome-request-dialog
27           nil "Bar?" nil 256
28           (lambda args
29             (format standard-error "bar: %S\n" args)
30             (gtk-main-quit)))))
31  (gtk-widget-show req)
32  (gtk-main))
33
34
Note: See TracBrowser for help on using the repository browser.