[gtkmm] gtk warnings after upgrading to gtkmm-1.3.20



Hello

I experienced a problem after upgrading from gtkmm-1.3.19 to 1.3.20.

When I try to run the following peice of code I get an error in the console:

#include <gtkmm.h>

class MyWindow : public Gtk::Window
{
public:
  MyWindow();
private:
  Gtk::Button b;
  Gtk::VBox vbox;
};
MyWindow::MyWindow() : 
  b("hello"),
  vbox()
{
  add(vbox);
  vbox.pack_start(b);
  show_all();
}

int main (int argc, char *argv[])
{
  Gtk::Main kit(argc, argv);
  
  MyWindow window;

  kit.run(window);

  return 0;
}

[sumpan e gtkmm-1.3.20-warning-test]$ ./test 

(test:12811): Gtk-CRITICAL **: file gtkcontainer.c: line 878 (gtk_container_remove): assertion `GTK_IS_CONTAINER (container)' failed
Segmentation fault

gtkmm-1.3.20 and gtk+-2.0.5, it runs and compiles without errors with gtkmm-1.3.19 and gtk+-2.0.5.

---
Daniel Sundberg
dss home se



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