Re: pointers mixed?
- From: Wolfgang Sourdeau <wolfgang ultim net>
- To: gtk-list gnome org
- Subject: Re: pointers mixed?
- Date: Sat, 20 Jan 2001 23:45:52 -0500
La plume légère, à Sat, Jan 20, 2001 at 11:19:29PM -0600, heure d'inspiration,
David Eduardo Gomez Noguera écrivait en ces mots:
> The weird thing is "This works!".
> whereas if i used "user_data" instead of "button", when i run the compiled binary i get an error message saying me i couldnt convert a button widget into a Text one if i did GTK_IS_EDITABLE, or that GTK_IS_EDITABLE failed.
Your "problem" (why is it a problem if it works ?) is that
gtk_signal_connect_object makes the user_data parameter (normally a widget)
the first parameter transmitted to the emitter's callback function.
You are probably confusing it with gtk_signal_connect whose callback's first
parameter will be the emitter itself, and the user_data the second parameter.
gtk_signal_connect_object and gtk_signal_connect invert the order in which the
parameters are transmitted. I think it is the only difference between them.
W
--
A chicken is an egg's way of producing more eggs.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]