After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 133237 - floating point exception when resizing a scrolled window within hpaned
floating point exception when resizing a scrolled window within hpaned
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.2
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2004-02-02 16:20 UTC by Peter Gasper
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4



Description Peter Gasper 2004-02-02 16:20:42 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);
}
Comment 1 Murray Cumming 2004-02-29 18:49:36 UTC
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.
Comment 2 Peter Gasper 2004-03-06 15:14:21 UTC
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.
Comment 3 Murray Cumming 2004-03-12 11:19:59 UTC
Did you discover anything?
Comment 4 Murray Cumming 2004-03-13 15:07:12 UTC
Please reopen if this is still a problem.