mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Make sure that --root works for toplevel widgets. (#491847, Phil Lello)
2008-01-06 Johan Dahlin <johan@gnome.org> * gtk/gtk-builder-convert (GtkBuilderConverter._strip_root): Make sure that --root works for toplevel widgets. (#491847, Phil Lello) svn path=/trunk/; revision=19309
This commit is contained in:
parent
fe095eccfe
commit
284af5af69
@ -1,3 +1,9 @@
|
||||
2008-01-06 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* gtk/gtk-builder-convert (GtkBuilderConverter._strip_root):
|
||||
Make sure that --root works for toplevel widgets.
|
||||
(#491847, Phil Lello)
|
||||
|
||||
2008-01-05 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* modules/other/gail/tests/Makefile.am: Include Makefile.decl,
|
||||
|
@ -597,16 +597,11 @@ class GtkBuilderConverter(object):
|
||||
raise SystemExit("Could not find an object called `%s'" % (
|
||||
root_name))
|
||||
|
||||
# If it's already a root object, don't do anything
|
||||
if widget.parentNode is self._interface:
|
||||
return
|
||||
|
||||
for child in self._interface.childNodes[:]:
|
||||
if child.nodeType != Node.ELEMENT_NODE:
|
||||
continue
|
||||
child.parentNode.removeChild(child)
|
||||
|
||||
widget.parentNode.removeChild(widget)
|
||||
self._interface.appendChild(widget)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user