From: Andy Wingo <wingo@pobox.com>
Subject: Re: guile-gtk
Date: Sun, 21 Nov 2004 19:00:51 +0200 [thread overview]
Message-ID: <1101056451.7122.35.camel@localhost> (raw)
In-Reply-To: <419B5A9E.6060408@ccrma>
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 <wingo@pobox.com>
http://ambient.2y.net/wingo/
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2004-11-21 17:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-15 20:41 guile-gnome releases: platform 2.7.96, bunch of "extras" Andy Wingo
2004-11-16 17:07 ` David Pirotte
2004-11-16 17:13 ` guile-gnome releases: platform 2.7.96 // make --> error David Pirotte
2004-11-16 19:46 ` guile-gnome releases: platform 2.7.96, bunch of "extras" Neil Jerram
2004-11-16 20:10 ` Greg Troxel
2004-11-17 14:05 ` guile-gtk Bill Schottstaedt
2004-11-17 19:27 ` guile-gtk Greg Troxel
2004-11-21 17:00 ` Andy Wingo [this message]
2004-11-17 20:03 ` guile-gnome releases: platform 2.7.96, bunch of "extras" Jan Nieuwenhuizen
2004-11-17 23:09 ` Jan Nieuwenhuizen
2004-11-17 23:51 ` Jan Nieuwenhuizen
-- strict thread matches above, loose matches on Subject: below --
2004-05-27 2:23 guile-gtk Thamer Al-Harbash
2004-05-27 9:57 ` guile-gtk Andreas Rottmann
2004-05-27 12:41 ` guile-gtk Greg Troxel
2004-05-27 14:35 ` guile-gtk Thamer Al-Harbash
2004-05-27 22:15 ` guile-gtk Kevin Ryde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1101056451.7122.35.camel@localhost \
--to=wingo@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).