Re: GtkImageMenuItem:: forall includes the internal GtkImage Widget?

2008-05-24 Thread Yu Feng
 > On Sat, 2008-05-24 at 15:51 +, BJörn Lindqvist wrote: > On Fri, May 23, 2008 at 11:24 PM, Yu Feng <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > > > Isn't the GtkImage in a GtkImageMenuItem an internal widget? > > No, GtkImageMenuItem is a GtkContainer and the image widget is set > explic

Re: GtkImageMenuItem:: forall includes the internal GtkImage Widget?

2008-05-24 Thread BJörn Lindqvist
On Fri, May 23, 2008 at 11:24 PM, Yu Feng <[EMAIL PROTECTED]> wrote: > Hi everyone, > > Isn't the GtkImage in a GtkImageMenuItem an internal widget? No, GtkImageMenuItem is a GtkContainer and the image widget is set explicitly as its child, so it is not internal. gtk_container_forall says ""intern

GtkImageMenuItem:: forall includes the internal GtkImage Widget?

2008-05-23 Thread Yu Feng
Hi everyone, Isn't the GtkImage in a GtkImageMenuItem an internal widget? The following code assumes GtkImage is an external widget. But GtkImageMenuItem is from a GtkBin, thus it should not have more than a child. -- static void gtk_image_menu_item_forall (GtkContainer *contai