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 523932 - gtk-builder-convert failed on converting GLADE file
gtk-builder-convert failed on converting GLADE file
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Class: GtkBuilder
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: GtkBuilder maintainers
GtkBuilder maintainers
: 528059 533567 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-03-23 01:53 UTC by Brian Pepple
Modified: 2008-05-17 14:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Brian Pepple 2008-03-23 01:53:20 UTC
Please describe the problem:
I'm attempting to use gtk-builder-convert to convert GLADE file to GtkBuilder format.

Steps to reproduce:
1. Convert GLADE file by gtk-builder-convert

Actual results:
Error logs listed below

$ gtk-builder-convert main_window.glade main_window.xml
Traceback (most recent call last):
  • File "/usr/bin/gtk-builder-convert", line 745 in <module>
    sys.exit(main(sys.argv))
  • File "/usr/bin/gtk-builder-convert", line 733 in main
    conv.parse_file(input_filename)
  • File "/usr/bin/gtk-builder-convert", line 161 in parse_file
    self._parse()
  • File "/usr/bin/gtk-builder-convert", line 259 in _parse
    self._convert(node.getAttribute("class"), node)
  • File "/usr/bin/gtk-builder-convert", line 284 in _convert
    self._convert_menu(node)
  • File "/usr/bin/gtk-builder-convert", line 342 in _convert_menu
    item = self._convert_menuitem(uimgr, obj_node)
  • File "/usr/bin/gtk-builder-convert", line 378 in _convert_menuitem
    item = self._convert_menuitem(uimgr, obj_node)
  • File "/usr/bin/gtk-builder-convert", line 374 in _convert_menuitem
    self._add_action_from_menuitem(uimgr, obj_node)
  • File "/usr/bin/gtk-builder-convert", line 425 in _add_action_from_menuitem
    properties['stock_id'] = child
UnboundLocalError: local variable 'child' referenced before assignment

Expected results:
It converts the file.

Does this happen every time?
Always

Here's a link to the glade file I'm having trouble with.
http://twitux.svn.sourceforge.net/viewvc/twitux/trunk/data/main_window.glade?view=markup
Comment 1 Johan (not receiving bugmail) Dahlin 2008-03-23 08:17:51 UTC
2008-03-23  Johan Dahlin  <johan@gnome.org>

	* gtk/gtk-builder-convert:
	Properly convert GtkImageMenuItems which use stock labels but don't
	have any children.
	(#523932, Brian Pepple)
Comment 2 Johan (not receiving bugmail) Dahlin 2008-04-14 15:48:58 UTC
*** Bug 528059 has been marked as a duplicate of this bug. ***
Comment 3 Johan (not receiving bugmail) Dahlin 2008-05-17 14:17:30 UTC
*** Bug 533567 has been marked as a duplicate of this bug. ***