From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: tomas@fabula.de Newsgroups: gmane.lisp.guile.user Subject: Questions about guile-gtk Date: Wed, 16 Oct 2002 13:48:48 +0200 Sender: guile-user-admin@gnu.org Message-ID: <20021016114848.GB6292@www> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035010596 22236 80.91.224.249 (19 Oct 2002 06:56:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 19 Oct 2002 06:56:36 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 182nXH-0005mT-00 for ; Sat, 19 Oct 2002 08:56:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 182nX0-0006Uf-00; Sat, 19 Oct 2002 02:56:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 182nWJ-0006LC-00 for guile-user@gnu.org; Sat, 19 Oct 2002 02:55:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 182nWH-0006Kz-00 for guile-user@gnu.org; Sat, 19 Oct 2002 02:55:34 -0400 Original-Received: from gnudist.gnu.org ([199.232.41.7]) by monty-python.gnu.org with esmtp (Exim 4.10) id 182cu7-0002bB-01 for guile-user@gnu.org; Fri, 18 Oct 2002 15:35:27 -0400 Original-Received: from www.elogos.de ([212.18.192.92]) by gnudist.gnu.org with esmtp (Exim 4.10) id 181mbU-00048U-00 for guile-user@gnu.org; Wed, 16 Oct 2002 07:45:08 -0400 Original-Received: by www.elogos.de (Postfix, from userid 5002) id 2801E1049BA; Wed, 16 Oct 2002 13:48:48 +0200 (CEST) Original-To: guile-user@gnu.org Content-Disposition: inline User-Agent: Mutt/1.3.24i Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:1218 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1218 Hi, experts (yeah, Marius, I fear that's especially you ;-) while trying to come up with bindings for the GtkCanvas widget (see my other posting), I came across several questions. Maybe someone can shec a bit of light on me. - I use the function sgtk_build_args(), which, as I understand, tries to convert an SCM keyword list into a GtkArg array to set the properties of a Gtk object. The third argument to it is a `protector', I don't understand exactly its use (but it's usually passed the object, which is annoying if it's the object just being created ;-) What I'm supposed to do with this? - I can't draw a line. The problem is that one of the parameters needed is a GtkCanvasPoints* (which is not a regular Gtk object, but just a C structure). Does the guile-gtk conversion mechanism provide a way to cope with that, or have I to do something by hand here? - How do I handle C functions with in/out parameters, that is, pointers, like: gtk_canvas_get_scroll_region(GtcCanvas c, double *x1, double *y1, double *x2, double *y2) Again: is there something in guile-gtk to cope with it and didn't I see it, or is it ``roll your own''? Besides, I think another discussion is in order: is it worth extending the binding mechanism of guile-gtk (I actually like it), or should we move towards a more general approach (g-wrap or swig)? In the mid-term I think it's important to have an ``official'' bindings generator tool, just to attract good bindings... Thanks for any input -- tomas _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user