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: guile-gtk usage question Date: Mon, 14 Oct 2002 13:53:38 +0200 Sender: guile-user-admin@gnu.org Message-ID: <20021014115338.GA26327@www> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034595501 23468 127.0.0.1 (14 Oct 2002 11:38:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Oct 2002 11:38:21 +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 1813YB-00066F-00 for ; Mon, 14 Oct 2002 13:38:20 +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 1813YA-0006mj-00; Mon, 14 Oct 2002 07:38:18 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 1813W9-0004kW-00 for guile-user@gnu.org; Mon, 14 Oct 2002 07:36:13 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 1813W0-0004MA-00 for guile-user@gnu.org; Mon, 14 Oct 2002 07:36:08 -0400 Original-Received: from www.elogos.de ([212.18.192.92]) by monty-python.gnu.org with esmtp (Exim 4.10) id 1813Vy-0004GH-00 for guile-user@gnu.org; Mon, 14 Oct 2002 07:36:03 -0400 Original-Received: by www.elogos.de (Postfix, from userid 5002) id 94C0F1049BA; Mon, 14 Oct 2002 13:53:38 +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:1190 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1190 Hi, I've downloaded guile-gtk (thanks, Marius!) and am playing a bit with it. My first try is to make a binding for the gtk-canvas widget (which is a backport of the gnome-canvas widget, find it at In this process I stumbled on one thing: gtk_canvas_item_new takes a variable list of arguments, so it needs a custom glue function. There are two models in guile-gtk I can steal from. One is gtk-object-new() and friends ant the other gtk-object-query-args(), the main difference being that the second has an entry in gtk-1.2.defs. Now to my questions: (1) Am I right in assuming that gtk-object-query-args() is ``the way to go'' (that is: the more `modern' model?) (2) To convert a keyword-values list into a GtkArgs I'd use args = sgtk_build_args(info, &n_args, scm_args, scm_obj, "foo"); Now, in the examples this scm_obj is the object being created (and is used for some `protection business', I guess somehow related with the garbage collector). That means that I have to - first create the object - then set its arguments instead of simply creating it with args. Is that how it should be done? Thanks for any input, I'll put up my first results for review around next weekend. Regards -- tomas _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user