Re: [gtk-list] Difference ?
- From: nelson-gtk crynwr com
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Difference ?
- Date: Mon, 23 Aug 1999 17:50:25 -0400 (EDT)
Andreas Scherf writes:
> Were is the diffrence between these two ways of Signal connections ?
>
> gtk_signal_connect (GTK_OBJECT (print_button),
> "clicked",
> (GtkSignalFunc) print_clist,p_obj);
>
> gtk_signal_connect (GTK_OBJECT (print_button),
> "clicked",
> GTK_SIGNAL_FUNC (printing_clist), p_obj);
I'm no expert, but from what I can tell from having written the Gtk
type documentation, yes, there's a considerable difference. The first
casts the value (whatever it may really be) into a GtkSignalFunc. The
second is a macro which may (or may not) do some checking up on
printing_clist before returning a pointer to it, cast into a
GtkSignalFunc.
--
-russ nelson <nelson@crynwr.com> http://russnelson.com
Crynwr sells support for free software | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | can outdo them. Homeschool!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]