RE: Unable to get all child widgets
- From: "Dugas, Alan" <alan dugas analog com>
- To: Havoc Pennington <hp redhat com>
- Cc: gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: RE: Unable to get all child widgets
- Date: Fri, 22 Sep 2000 16:40:50 -0400
Ahh, I see now. The GTK_IS... macros are determining if the widget being
tested lies within the object hierarchy of the widget in the macro name.
However, the maco names certainly suggest something subtly different.
-- Stupid Genius
> From: Havoc Pennington[SMTP:hp redhat com]
> Sent: Friday, September 22, 2000 1:45 PM
> To: Dugas, Alan
> Cc: gtk-app-devel-list gnome org; gtk-list gnome org
> Subject: Re: Unable to get all child widgets
> "Dugas, Alan" <alan dugas analog com> writes:
> > I finally found the root case of my inablility to find the widgets
> > within the hbox. GTK_IS_HBOX() returns TRUE for a gtkcombo. When the
> > loop ran, the widgets were encountered in this order: hbox, table,
> > Since combo was last, it overwrote the hbox address. Using ddd/gdb I
> > able to confim that the variables hbox and test_list_combo were pointing
> > the same widget. The fix was to logically AND GTK_IS_HBOX() with hbox
> > (GtkWidget *) NULL. Thanks to all who responded.
> > -- Stupid Genius
> > P.S.
> > Havoc, would you say that this is, or at least should be, considered a
> > in gtk+1.2.8?
> No, I think GtkCombo derives from GtkHBox and thus is indeed an HBox.
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
] [Thread Prev