Re: [gtk-list] widget's parent



On Sun, 3 May 1998, Doug South wrote:

> Ok, I'll probably thump myself when I get an answer to this, but I'm
> going to ask anyway.
> 
> I want to know what widget is the parent of a widget. I guess my main
> concern is that I want to use gtk_fixed_move on my widgets, which means
> I need the widget's parent. 
> 
> Basically I'm constructing a shared library of utilities with GTK, so I
> need a way to find the parent that is a fixed container for the widget,
> if the widget does indeed have a parent.

parent = GTK_WIDGET (my_widget)->parent;
if (parent && GTK_IS_FIXED (parent))
{
}


> 
> Doug
> -- 
> My wasted space --- http://www.squirrel.net/~dsouth
> 

---
ciaoTJ



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