public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
From: "Greg J. Badros" <gjb@cs.washington.edu>
To: Marius Vollmer <mvo@zagadka.ping.de>
Cc: guile-gtk@sourceware.cygnus.com
Subject: Re: gtk-clist-append does not work with shared substrings
Date: Sun, 23 Jan 2000 09:26:00 -0000	[thread overview]
Message-ID: <qrr66wku2c1.fsf@clavicle.cs.washington.edu> (raw)
In-Reply-To: <871z78aifz.fsf@zagadka.ping.de>

Marius Vollmer <mvo@zagadka.ping.de> writes:

> "Greg J. Badros" <gjb@cs.washington.edu> writes:
> 
> > > My current thinking is to convert a composite of mode `in' by copying
> > > it, and one of mode `out' or `inout' by modifying it in place.  Any
> > > thoughts about this?
> > 
> > I've never achieved a deep understanding of the guile-gtk interface
> > description stuff, but my naive take on this stuff is that that would be 
> > sufficient.  You definitely don't want to side-effect an in parameter. 
> 
> Ok, I have now checked in some code for this (also some bug fixes).
> Can you give it a try?  I didn't really test it.

Just tried, and it succeeds with my simple test case:

#!/usr/bin/guile -s 
!#
(use-modules (gtk gtk))

(define w (gtk-window-new 'dialog))
(define clist (gtk-clist-new-with-titles (list "first" "second")))
(define vbox (gtk-vbox-new #f 5))
(gtk-box-pack-start vbox clist)
(gtk-container-add w vbox)
(gtk-clist-append clist (list "foo" "bar"))
(gtk-clist-append clist (list (make-shared-substring "foo") "bar"))
(gtk-widget-show-all w)
(gtk-standalone-main w)


Thanks!

Greg

      reply	other threads:[~2000-01-23  9:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-16 15:19 Greg J. Badros
2000-01-19 11:10 ` Marius Vollmer
2000-01-19 11:37   ` Greg J. Badros
2000-01-20 22:13     ` Marius Vollmer
2000-01-20 21:22       ` Greg J. Badros
2000-01-23  8:04         ` Marius Vollmer
2000-01-23  9:26           ` Greg J. Badros [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=qrr66wku2c1.fsf@clavicle.cs.washington.edu \
    --to=gjb@cs.washington.edu \
    --cc=guile-gtk@sourceware.cygnus.com \
    --cc=mvo@zagadka.ping.de \
    /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).