From: Ariel Rios <ariel@linuxppc.org>
To: David Pirotte <david@altosw.be>
Cc: guile-gtk <guile-gtk@sourceware.cygnus.com>
Subject: Re: gtk questions
Date: Tue, 24 Apr 2001 18:14:00 -0000 [thread overview]
Message-ID: <988153894.943.4.camel@soleil> (raw)
In-Reply-To: <3AE54D23.2DFB5671@altosw.be>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1542 bytes --]
El 24 Apr 2001 11:53:39 +0200, David Pirotte escribió:
sorry for the delay..
> 1.
>
> I need but am unable to use the following function, not knowing what its
> last argument should be?
>
> (gtk-clist-get-text <clist> <row> <col> <???>)
>
> anyone knows? [I tried to pass a string vector but that was not
> right, and if it was correct, what should its length be anyway?]
This function is really bad defined. It is a Gtk+ mistake.
Basically all of GtkClist is stupid anyway...
Just ignore it. It doesn't work. I once tried to use it but it does
not make sense.
What I normally do is before insertying things unto Clist I
have a variable that saves the values appended unto the list:
(gtk-clist-append clist foo)
(set! ls (cons ls foo))
It is stupid but...
> 2.
>
> is there a way to query a clist to know what row is selected?
>
> for example, a clist with 2 columns and 2 rows in it
(gtk-signal-connect clist "select_row"
(lambda (row col event) (whatever))
In this way you can get both the row and the column and put what you
want to do in whatever =)
> is there a possibility to have a column title composed of a pixmap and a label?
In C Gtk+ you can but looking at our defs files:
;; XXX - the following all use GdkPixmaps and GdkBitmaps rather than
;; a GtkPixmap, this sucks.
;; (define-func gtk_clist_set_pixmap)
;; (define-func gtk_clist_get_pixmap)
I will look f there is an easy way to add them.
GtkClist is really ugly and should be avoided, It will not be available in
Gtk2.0 =) IIRC
ariel
next prev parent reply other threads:[~2001-04-24 18:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-24 1:50 David Pirotte
2001-04-24 18:14 ` Ariel Rios [this message]
2001-04-25 11:12 ` David Pirotte
2001-04-25 19:51 ` Ariel Rios
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=988153894.943.4.camel@soleil \
--to=ariel@linuxppc.org \
--cc=david@altosw.be \
--cc=guile-gtk@sourceware.cygnus.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).