error dialog not centered

I have these following code:


sub cb_ok {
   my $self = shift;
my $dialog = Gtk2::MessageDialog->new($self, 'modal', 'error', 'ok', $message);


But it behave like I wanted.

1. The error pop-up did not center in their parrent, but seems on top-left of screen.
2. How to make the "OK" button centered (presently it right alignment)?
3. How to remove the icon on the "OK" button?



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