ScrolledWindow doesn't properly remove widget from Viewport parent when calling ->remove()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gtkmm2.4 (Ubuntu) |
Incomplete
|
Medium
|
ubuntu-gnomemm |
Bug Description
This is easily reproducible using the examples found at: http://
The following is a compile/running of the program with the error and a diff that shows how to reproduce the problem using this example program
lakin@zedd:~$ g++ *.cc `pkg-config --cflags --libs gtkmm-2.4`
lakin@zedd:~$ ./a.out
(a.out:26073): Gtk-CRITICAL **: gtk_scrolled_
lakin@zedd:~$ diff examplewindow.
46a47,48
> m_ScrolledWindo
> m_ScrolledWindo
lakin@zedd:~$
If you add the following code it works, but shouldn't this happen automatically when calling ->remove on a ScrolledWindow? I mean, I didn't explicitly ask for the widget to be added to the viewport, why should I remove it from the viewport when I need to remove the widget?
lakin@zedd:~$ g++ *.cc `pkg-config --cflags --libs gtkmm-2.4`
lakin@zedd:~$ ./a.out
lakin@zedd:~$ diff examplewindow.
47a48,51
> dynamic_
> m_ScrolledWindo
> m_ScrolledWindo
>
lakin@zedd:~$
Changed in gtkmm2.4: | |
assignee: | nobody → dholbach |
Changed in gtkmm2.4: | |
assignee: | dholbach → ubuntu-gnomemm |
Thanks for your bug report. Which version of gtkmm2.4 do you use? I can't reproduce the bug. It seems to work nicely for me.