From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: guile-gtk Date: Sun, 21 Nov 2004 19:00:51 +0200 Message-ID: <1101056451.7122.35.camel@localhost> References: <1100551262.19830.242.camel@localhost> <419A592F.3080301@ossau.uklinux.net> <419B5A9E.6060408@ccrma> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1101122436 21581 80.91.229.6 (22 Nov 2004 11:20:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 22 Nov 2004 11:20:36 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Nov 22 12:20:28 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CWCF9-00044f-00 for ; Mon, 22 Nov 2004 12:20:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWCOC-0001WQ-HT for guile-user@m.gmane.org; Mon, 22 Nov 2004 06:29:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CWCHz-0006vS-GK for guile-user@gnu.org; Mon, 22 Nov 2004 06:23:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CWCHv-0006tx-Gm for guile-user@gnu.org; Mon, 22 Nov 2004 06:23:21 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CWCHv-0006tf-4E for guile-user@gnu.org; Mon, 22 Nov 2004 06:23:19 -0500 Original-Received: from [216.166.232.203] (helo=johnson-resources.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CWC8p-0000UA-2w for guile-user@gnu.org; Mon, 22 Nov 2004 06:13:55 -0500 Original-Received: from localhost (mantis.schoolnet.na [::ffff:196.44.140.238]) (AUTH: LOGIN wingo) by johnson-resources.com with esmtp; Mon, 22 Nov 2004 06:13:46 -0500 id 001201CA.41A1C9EE.00007602 Original-Received: from wingo by localhost with local (Exim 3.36 #1 (Debian)) id 1CVv5M-0001un-00 for ; Sun, 21 Nov 2004 19:01:12 +0200 Original-To: Guile Users In-Reply-To: <419B5A9E.6060408@ccrma> X-Mailer: Evolution 2.0.1 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:3748 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3748 Hey Bill, On Wed, 2004-11-17 at 06:05 -0800, Bill Schottstaedt wrote: > Another choice is libxm which has support for all versions > of gtk since 2.0. It's a different choice indeed, a bit closer to the C. Some libxm examples from snd-gtk.scm: (gtk_range_set_update_policy (GTK_RANGE (GTK_SCALE scale)) GTK_UPDATE_CONTINUOUS) (g_signal_connect_closure_by_id (GPOINTER adj) (g_signal_lookup "value_changed" (G_OBJECT_TYPE (GTK_OBJECT adj))) 0 (g_cclosure_new (lambda (w d) (func (.value (GTK_ADJUSTMENT adj)))) #f #f) #f))) The same code in guile-gnome would be: (set-update-policy scale 'continuous) ;; you could use the full name, gtk-range-set-update-policy ;; or, with gobject properties, (set scale 'update-policy 'continuous) (connect adj 'value-changed (lambda (x) (func (gtk-adjustment:value adj)) #f)) So on the one hand, guile-gnome feels more schemey, but on the other, gtk-adjustment:value doesn't actually exist right now (GtkAdjustment needs more love). In libxm everything that you have in C should be available in scheme without extra love. Regards, -- Andy Wingo http://ambient.2y.net/wingo/ _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user