[10454] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: CList: Menu on right-click
daemon@ATHENA.MIT.EDU (Michael Elkins)
Wed Nov 25 16:46:51 1998
Date: Wed, 25 Nov 1998 13:40:16 -0800
From: Michael Elkins <michael@tis.com>
To: gtk-list@redhat.com
In-Reply-To: <365C3412.A4743DAB@tc.umn.edu>; from Michael Hicks on Wed, Nov 25, 1998 at 10:45:06AM -0600
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
On Wed, Nov 25, 1998 at 10:45:06AM -0600, Michael Hicks wrote:
> if (selection != NULL) {
> printf ("selection != NULL\n");
> if (selection->data != NULL) {
> printf ("selection->data != NULL\n");
> row_start = (GtkCListRow *) selection->data;
> row_end = (GtkCListRow *) selection_end->data;
> /* Is that correct? Am I totally wrong? */
> /* some stuff involving getting the names of the selected
> files... */
> /* Anyone know how to do this? */
> }
> }
Someone else on this list just helped me. What is stored in the .data
member is a `gint' which is the row that was selected. So what you want is:
gint row_start, row_end;
row_start = (gint) selection->data;
row_end = (gint) selection_end->data;
HTH,
me
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null