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

  • From: Peter van Eerten <administrator@xxxxxxxxxxxxxx>
  • To: gtk-server@xxxxxxxxxxxxx
  • Date: Tue, 02 May 2006 08:41:15 +0200


The function "gtk_hscale_new_with_range ()" is defined in the example gtk-server
configfile which is shipped by the package.

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

Also, could you provide me the following:

1) your definitions in the configfile
2) the LISP code which does not seem to work correctly.


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 clisp
> (http://www.turtle.dds.nl/gtk-server/index.html). As it is said there this
> way
> is very interesting and easy enough to be used by a newcomer in lisp
> (like me).
> However since feb-2005, date of the gtk.lisp/gtk-glade.lisp delivery, and the
> last glade-2.10 ship, there is perhaps a gap which is  a bit awkward. In
> matter of fact some elements/functions that glade gives almost by default
> (gtk_image_menu_item_* for instance) are unknown from gtk-glade and it were a
> pity not to use them.
> So as an exercise I've introduced some tiny new functions in the Bailey's
> files (gtk-glade.lisp et gtk-server.cfg).
> That is :
> - gtk_image_menu_item_*,
> - gtk_drawing_area_size
> - and gtk_hscale_new_with_range.
> The later doesn't work for passed values =/= 0 ; probably for the three
> parameters expected by gtk which are double-float values while this type is
> not defined in gtk-server. I then declared them as single-floats and get the
> widget but only for min, max and step parameters set to 0.
> Then my question :
> How can we fix that ?
> Regards
> Alain


Other related posts: