GNOME Bugzilla – Bug 133237
floating point exception when resizing a scrolled window within hpaned
Last modified: 2004-12-22 21:47:04 UTC
I'm adding a scrolledwindow to one or both panes in an HPaned widget. If one then takes the mouse and drags the handle all the way to the left or right the program errors out with a floating point exception. example code: #include <gtkmm/main.h> #include <gtkmm/window.h> #include <gtkmm/paned.h> #include <gtkmm/label.h> #include <gtkmm/scrolledwindow.h> class Test : public Gtk::Window { public: Test() :label1("test"), label2("test2") { add(hpaned); hpaned.add1(win1); win1.add(label1); hpaned.add2(win2); win2.add(label2); show_all(); }; virtual ~Test() {}; protected: Gtk::Label label1, label2; Gtk::ScrolledWindow win1, win2; Gtk::HPaned hpaned; }; int main(int argc, char *argv[]) { Gtk::Main kit(argc, argv); Test test; Gtk::Main::run(test); return (0); }
I get no crash here, though I am using GTK+ 2.3. What version of GTK+ 2.2 do you have? Maybe it was fixed in a later GTK+ 2.2.x as well.
I am running gtk+ 2.2.2 & gtkmm 2.2.3; so a little old. I have a newer versions at home. I'll test this there this week and get back to you.
Did you discover anything?
Please reopen if this is still a problem.