From: <bug...@bu...> - 2004-11-23 11:27:03
|
http://bugzilla.gnome.org/show_bug.cgi?id=159184 gnome-perl | Gtk2::GladeXML | Ver: unspecified Summary: Defining a translation domain without a root element in Gtk2::GladeXML->new throws an error Product: gnome-perl Version: unspecified Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: Gtk2::GladeXML AssignedTo: gtk...@li... ReportedBy: smo...@ea... 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') ... ------- You are receiving this mail because: ------- You are the assignee for the bug. |