in reply to Re: Gtk2::Dialog window size
in thread Gtk2::Dialog window size

set_default_size needs sizes in pixels. I had tried $dialog->set_size_request(500,-1), which worked, sort of. I know the size of my title in characters, but I don't know the width of the font used, so I can only guess at the required width in pixels, hence the 500. If my title is e.g. "No, whatever" I need something that will tell me how many pixels is equivalent to length("No, whatever").

Replies are listed 'Best First'.
Re^3: Gtk2::Dialog window size
by Anonymous Monk on Jul 01, 2016 at 00:50 UTC