[9096] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: very confused: "selection_received" signal
daemon@ATHENA.MIT.EDU (Owen Taylor)
Thu Oct 8 00:36:20 1998
To: gtk-list@redhat.com
From: Owen Taylor <otaylor@redhat.com>
Date: 08 Oct 1998 00:47:02 -0400
In-Reply-To: beach@ataman.com's message of "Wed, 7 Oct 1998 16:52:02 -0600"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
beach@ataman.com writes:
> I took a look at "21. Managine Selections" from the Gtk tutorial.
>
> >From reading the C code in the tutorial, it appears that the signal,
> "selection_received" is supposed to provide a GtkSelectionData
> argument to its selection handler. But when I run this through a
> marshaller, it appears to give a GTK_TYPE_BOXED -- and when I call
> gtk_type_name on the argument's type, I get "GdkEvent". Why is this
> happening? What is the correct way to determine that I'm getting a
> GtkSelectionData argument? What's the right way to marshal it?
Looks like a 1.0.x bug that has been fixed in the 1.1.x branch.
"selection_received" parameters as in the tutorial, but the
signal is created with incorrect type information.
Regards,
Owen
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null