Re: Almost out there... Gtk2::Ex::Utils && Gtk2::Ex::Dialogs

On Sun, 2004-09-26 at 23:50, Daniel Kasak wrote:
I've just installed both and tried it out.

I've copied the example into an app:

 use Gtk2::Ex::Dialogs ( destroy_with_parent => TRUE,
                         modal => TRUE,
                         no_separator => FALSE );

 # do some stuff like creating your app's main $window then,
 # to ensure that all messages use the right parent, set it:
 Gtk2::Ex::Dialogs->set_parent_window( $window );

 # now popup a new dialog
 my $r = ask Gtk2::Ex::Dialogs::Question ( "Is Perl only hacker's glue?" );
 if ( $r ) {
   # end-user thinks so
 } else {
   # end-user does not think so

and I get the error:

***   Can't locate object method "new_run" via package 
"Gtk2::Ex::Dialogs::Question" at 
/usr/lib/perl5/site_perl/5.8.5/Gtk2/Ex/Dialogs/ line 245.

Maybe that should be 'new_and_run'? on line 245? Seems to work OK after 
that change.

Yup, typo. My bad.

Fixed for release.

Thanks for the feedback!

Kevin C. Krinke <kckrinke opendoorsoftware com>
Open Door Software Inc.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]