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,
                                    'error', # message type
                                    'ok', # which set of buttons?
                                    #printf format:
                                    "\"%s\" already selected.",
    my($response) = $dialog->run;

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

Many thanks,


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]