Re: bug in gtk-- ?
- From: "Andrew V. Shuvalov" <andrew ecsl cs sunysb edu>
- To: "gnome-list gnome org" <gnome-list gnome org>
- Subject: Re: bug in gtk-- ?
- Date: Tue, 29 Sep 1998 12:14:05 -0400
Tero Pulkkinen wrote:
> "Andrew V. Shuvalov" <andrew@ecsl.cs.sunysb.edu> writes:
> > Hi! I have a problem with recent cvs Gtk-- and gtk+-1.1.2-1:
> > This bug was not here before, i mean i did not changed my code.
> > I have a subclass from Gtk_Button. And when i am in constructor,
> > GTK_WIDGET( gtkobject )->window is still NULL. My code:
>
> hmm, this same feature happens on other widgets -- usually calling realize()
> fixes this.
realize() as the first line in constructor? It became even worse:
Gtk-CRITICAL **: file gtkwidget.c: line 2880 (gtk_widget_get_parent_window):
assertion `widget->parent != NULL' failed.
Code is:
Gtk_ImageTextButton::Gtk_ImageTextButton( const char *xpmpath,
const char *labelt )
: Gtk_Button()
{
realize();
if( GTK_WIDGET( gtkobject )->window == NULL )
throw BasicException();
....
}
>
>
> Maybe they've done some change on gtk+ that makes this happen also on buttons?
> (I dunno :)
--
Andrew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]