Gtk2::MessageDialog title



Hi All,

Is it possible to set the title of a MessageDialog?

I have the following:

sub show_duplicate_dialog
{
    #
    # A modal dialog.  Note that the message is a printf-style format.
    #
    my($duplicate) = @_;
    my($dialog) = Gtk2::MessageDialog->new (undef,
                                    'destroy-with-parent',
                                    'error', # message type
                                    'ok', # which set of buttons?
                                    #printf format:
                                    "\"%s\" already selected.",
                                    $duplicate);
    my($response) = $dialog->run;
    $dialog->destroy;
   
}

But can't work out how to add a title to the dialog box that appears.

Many thanks,

ZM.



Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7. Enter now.

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