GNOME Bugzilla – Bug 159184
Defining a translation domain without a root element in Gtk2::GladeXML->new throws an error
Last modified: 2004-12-22 21:47:04 UTC
Try to load glade-file and define a translation domain as the last parameter, but you don't specify a root-widget (second parameter). See this snipped below: use Gtk2 -init; use Gtk2::GladeXML; our $gladexml = Gtk2::GladeXML->new('myuserinterface.glade',undef,"myuserinterface"); This throws an error: (userinterface.pl:25060): libglade-CRITICAL **: file glade-xml.c: line 1198 (glade_xml_build_interface): assertion `wid != NULL' failed The above snipped should be fine, it should be possible to specify a translation domain without defining a root element. If I use this: our $gladexml = Gtk2::GladeXML->new('myuserinterface.glade','mainWindow","myuserinterface"); everything works fine. I found also a ruby-example, which uses my syntax: @glade = GladeXML.new('myapp.glade', nil, 'myapp') ...
Yeah, looks like all those constructors need to use _ornull for `root´ and `domain´. Ross, what do you think?
i'm not able to check into this at the moment, but that was my first thought. i should be able to get to it later in the week/end.
was a bug, also present in several other functions. fixed and commited just now. will be in subsequent releases starting with the next. (not yet planned) workaround is to go ahead and specify the root widget. it is probably best to do this anyway since older versions of Gtk2::GladeXML will require it and apps may be run with them.