[gtk-server] Re: clisp, gtk-server & glade-2.10

  • From: CLisp <card.lemoine@xxxxxxxxxx>
  • To: gtk-server@xxxxxxxxxxxxx
  • Date: Tue, 2 May 2006 19:48:56 +0200

Thank you.

Le Mardi 2 Mai 2006 08:41, Peter van Eerten a écrit :
> Hi,
> The function "gtk_hscale_new_with_range ()" is defined in the example
> gtk-server configfile which is shipped by the package.

Indeed it is, I don't know where to put myself. I must have downloaded many 
config files at the beginning of my interest for gtk-server and not installed 
the one which belongs to this package. Anyway the line is correct. I put my 
".gtk-server.cfg" file in attachment.
> When you define to read GTK 1.x libraries, the FLOAT keyword in the
> configfile will be interpreted as a single float, since GTK 1 uses single
> floats solely.
> When you define the configfile to read GTK 2.x libraries, the FLOAT keyword
> is interpreted to a double float.
> So it should be working out of the box. So which libraries did you define
> exactly?
GTK_LIB_NAME = libgtk-x11-2.0.so
GDK_LIB_NAME = libgdk-x11-2.0.so
GLIB_LIB_NAME = libglib-2.0.so
GTK_LIB_EXTRA = libgdk_pixbuf_xlib.so
> Also, could you provide me the following:
> 1) your definitions in the configfile
> 2) the LISP code which does not seem to work correctly.
Here is the code I thought to have to add (Please keep in mind that I'm a new 
comer in lisp) :
In the (case clas ... :
           (let ((adjust
                   (get-strm-mult-prop "adjustment" props) ())))
             (setq new-widget
                    (coerce (cadr adjust) 'float)
                    (coerce (caddr adjust) 'float)
                    (coerce (cadddr adjust) 'float)))))
In the early defuns section :
(defun get-strm-mult-prop (prop-name props)
  (setq strm-prop (make-string-input-stream
                    (gethash prop-name props 0))))

(defun get-mult-prop-values (strm-prop list-prop)
      (if (not (listen strm-prop))
       strm-prop (cons (read strm-prop) list-prop))))

Please find the concerned files in the tarbal attached
> Thanks,
> Peter
> Citeren CLisp <card.lemoine@xxxxxxxxxx>:
> > Hello,
> >
> > I have tried the Jim Bailey's package that is mentionned at the end of
> > the Mac Carter documentation page which is devoted to gtk-server and

Other related posts: