Public bug reported:

I've got a little program that should change the content in the left
area when an item in a TreeView on the left side of the window is
clicked. Everything worked well, until I changed the right areas base
container to a ScrolledWindow. Now, when I remove a widget from the
right area, and afterwards - somewhen in the runtime - change back to
it, it can't be added anymore. I get the error

Gtk-CRITICAL **: gtk_scrolled_window_add_with_viewport: assertion
`gtk_widget_get_parent (child) == NULL' failed

I've found a bug report for something that seems to be the same, but in
gtkmm 2.4: https://bugs.launchpad.net/ubuntu/+source/gtkmm2.4/+bug/30345

I've got a code sample as attachment that shows the problem. You can
also see it when you compile my program yourself (It's available on
github: https://github.com/jonessen96/SchoolMessOrganizer)

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: libgtkmm-3.0-dev 3.5.12-0ubuntu3
ProcVersionSignature: Ubuntu 3.5.0-15.22-generic 3.5.4
Uname: Linux 3.5.0-15-generic x86_64
ApportVersion: 2.5.2-0ubuntu4
Architecture: amd64
Date: Mon Sep 24 21:36:26 2012
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Alpha amd64+mac (20120905.2)
ProcEnviron:
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: gtkmm3.0
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gtkmm3.0 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug quantal running-unity

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1055744

Title:
  can't remove a widget correctly from a Gtk::ScrolledWindow

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gtkmm3.0/+bug/1055744/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to