in reply to Gtk2::Dialog window size

How do I set the dialog window size so the entire title is displayed.

Titles are often clipped, so if that information is important, include it again inside the dialog

Replies are listed 'Best First'.
Re^2: Gtk2::Dialog window size
by smittypaddler (Acolyte) on Jul 02, 2016 at 14:13 UTC
    I solved my problem with this, which granted is simple, but I still think there should be a strait forward one-statement way of determining text size in pixels:
    $title=($answer eq $Answer) ? "Yes" : "No, s/b $Answer"; $dialog=Gtk2::Dialog->new($title,$parent, [qw/modal destroy-with-parent/], $title => 'ok', );