Missing Gtk3::MessageDialog's format_secondary_text method?



Hi,

(Gtk3 is 0.016, Glib::Object::Introspection is 0.023-1)

I get this error:

    Can't locate object method "format_secondary_text" via package "Gtk3::MessageDialog"

... with that program:

    use strict;
    use warnings FATAL => 'all';
    
    use Gtk3 qw{-init};
    
    my $main_window = Gtk3::Window->new('toplevel');
    
    my $dialog = Gtk3::MessageDialog->new(
        $main_window, 'destroy-with-parent', 'error', 'ok', "title"
    );
    
    $dialog->format_secondary_text("bla");

Am I doing anything wrong, or are there some bits missing somewhere?
Note that it works just fine if I replace the call to the
format_secondary_text method with:

    $dialog->set('secondary_text' => "bla");

Thanks in advance!

Cheers,
-- 
  intrigeri
  | GnuPG key @ https://gaffer.ptitcanardnoir.org/intrigeri/intrigeri.asc
  | OTR fingerprint @ https://gaffer.ptitcanardnoir.org/intrigeri/otr.asc


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