bug in gtk-- ?



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:

class Gtk_ImageTextButton : public Gtk_Button {
public:
  Gtk_ImageTextButton( const char *xpmpath, const char *label );
};

Gtk_ImageTextButton::Gtk_ImageTextButton( const char *xpmpath,
                                          const char *labelt )
  : Gtk_Button()
{
  if( GTK_WIDGET( gtkobject )->window == NULL )
    throw BasicException();
  ....
}
Exception is alwais rased.

--
          Andrew




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