description (.defs) of GTK interface

Dear All,

Apparently there exist a description of the full GTK interfaces in
some Lispy syntax. For example both Python and CommonLisp interfaces
to GTK2 contains a file named gtk-2.0.defs containing stuff like

(define-enum GtkArrowType
  (right GTK_ARROW_RIGHT))

(define-flags GtkAttachOptions
  (expand GTK_EXPAND)
  (shrink GTK_SHRINK)
  (fill GTK_FILL))

(define-boxed GtkAccelGroup
  (copy gtk_accel_group_ref)
  (free gtk_accel_group_unref))

(define-object GtkAdjustment (GtkObject)
   (float value)
   (float lower)
   (float upper)
   (float step_increment)
   (float page_increment)
   (float page_size)))

(define-func gtk_label_new
  ((string str)))

I wonder where such files come from. What is the initial
(i.e. authoritative and current) version of such file describing the

My small problem with such file is purely syntactical. The C symbols
are obviously case sensitive, but Scheme readers are not, and I am not
fluent enough in CommonLisp to make it with CL.

I might be interested in coding a GTK widget server, which listens to
high-level requests on a channel and display GTK widgets accordingly.

I started to code such a stuff (called Guis) -- see for details.

I am seriously considering to add a sort of JIT compiler (of a tiny,
GTK specific, language with a Lispy (=parenthesised) syntax and a
C-like semantic), probably using the GNU lightning JIT code generator

I would like to make (quickly) a widget server for GTK2, like
e.g. IRAF did, or
picogui (and like the now dead openwindows NeWS
system did).

Is anybody interested in such stuff (GTK widget server)? 

Does anyone know for sure the source of gtk-2.0.defs files?


email: basile<at>starynkevitch<dot>net 
alias: basile<at>tunes<dot>org 
8, rue de la Fa´encerie, 92340 Bourg La Reine, France

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]