[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Problems with callback functions...
- From: "Jeff W." <jdweinst ucsd edu>
- To: gtk-app-devel-list redhat com
- Subject: Re: Problems with callback functions...
- Date: Fri, 25 Feb 2000 01:05:05 -0800
Laurent Sauvebois wrote:
>
> "Jeff W." wrote:
>
> > How can I pass in my property box to this callback function so that I
> > can call the gnome_property_box_changed() method and enable the "apply"
> > button? Thanks for your time.
>
> Hi,
>
> two solutions for you :
>
> 1/
>
> gint callback(my_type *my_pointer)
> {
>
> }
>
> called by
>
> gtk_signal_connect_object(GTK_OBJECT(my_widget),"event",
> GTK_SIGNAL_FUNC(callback),GTK_OBJECT(my_pointer));
>
> This way, the cast is done as the callback function is called. it is a cast
> from a pointer to a pointer, no pb.
>
I tried that, by changing the "gpointer user_data" to "GnomePropertyBox*
user_data" in my callback function, and it still gives me the same error
if I try to pass in "user_data" to
gnome_property_box_change(user_data). My gtk_signal_connect_object(...)
function is just like you have above.
--
<signature>
Jeff W., ICQ# 17989474
Change is inevitable.
"We are what we repeatedly do" - Aristotle
http://www.geocities.com/SunsetStrip/Alley/3450/index.html
http://minimal.ath.cx
</signature>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]