Thierry Vignaud <[EMAIL PROTECTED]> writes: > > [simon@localhost simon]$ Can't call method "get_widget" on > > an undefined value at /usr/sbin/drakconf.real line 825. > > [1]+ Done drakconf > > i know, i know but i'm currently busy in porting our tools to gtk+-2 > since gc has nearly done most widget support in perl-Gtk2. > once that done, i'll look at it. > it should work smoothly with : > > LC_ALL=C LC_MESSAGES=C LANG=C LANGUAGE=C mcc > > it is known to work smoothly too with french locales :-)
oops :-( drakxtools-newt lacks latest ugtk.pm this hopefully fix it : --- /usr/lib/libDrakX/ugtk.pm 2002-11-18 16:25:38.000000000 +0100 +++ /home/tv/cvs/mdk/gi/perl-install/ugtk.pm 2002-12-02 09:14:11.000000000 +0100 @@ -319,7 +318,9 @@ my $widget = new Gtk::ItemFactory($type, $name, my $accel_group = new Gtk::AccelGroup); $widget->create_items(@menu_items); $window->add_accel_group($accel_group); #$accel_group->attach($main_win); - $widget->get_widget($name); # return menu bar + my $menu = $widget->get_widget($name); + $menu->{factory} = $widget; + $menu; # return menu bar } sub create_factory_menu { create_factory_menu_('Gtk::MenuBar', '<main>', @_) }