Re: [gtk-list] A simpler guile-gtk interface
- From: lutterdc cs purdue edu (David Lutterkort)
- To: gtk-list redhat com
- Subject: Re: [gtk-list] A simpler guile-gtk interface
- Date: Tue, 16 Jun 1998 22:30:04 -0500
> On Sun Jun 7, Jeff Dike <jdike@karaya.com> wrote:
>
> I have started writing a new guile-gtk interface over the existing one. The
> goal is to simplify the code and make it more transparent.
>
Excellent !
> As an example, the new code to create a top-level window with a label in it is
> as follows:
> (gtk-widget-show
> (gtk-top-level
> ((title "Top-level title"))
> (gtk-label "here is a label")))
>
> Attributes of widgets are specified in a property-list-like way.
> Child widgets are automatically inserted into parents and realized.
>
This is really cool ! The big advantage of using gtk with guile over
vanilla C right now is that it is _much_ easier to get something going in
guile than in C. But it is still not as convenient as it could be. Your
idea is filling a big gap ... I would love to see this in the guile-gtk
distro. Is there any chance to generate the simple-gtk module from
something similar to Marius' gtk.defs ? As I understand, simple-gtk is a
bunch of macros that turn alists into calls of gtk-*; so maybe the
admissible property values could be generated from a description of valid
argument values for the gtk-* calls.
Cheers,
David
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]