Re: Parent of a widget



Quoth "Michael":
> 
> Im still having problem with this
> 
> I have a GtkCList* and I want to find the GtkWidget* of the window that
> the listbox is in.
> 
> Any options ? gtk_window_get_parent will not work.

You could use gtk_object_set_data to embed in the CList a pointer to its 
parent window, which you can then retrieve from the CList later using 
gtk_object_get_data. I don't know if this is the best way to do it, but it 
works for me.

-- 
J.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]