From 064977e7d008fab29afd8fef237ecfc335a3e5be Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 21 Jul 2003 16:52:35 +0000 Subject: workaround buggy gtk+-2.x that do not wrap textviews when realized --- perl-install/standalone/harddrake2 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'perl-install/standalone/harddrake2') diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2 index 13212171c..15ef68568 100755 --- a/perl-install/standalone/harddrake2 +++ b/perl-install/standalone/harddrake2 @@ -322,9 +322,14 @@ $textcolumn->set_min_width(350); #$textcolumn->set_minmax_width(400); $textcolumn->set_sizing('GTK_TREE_VIEW_COLUMN_AUTOSIZE');#GROW_ONLY #$tree->columns_autosize(); -my $path = Gtk2::TreePath->new_first; -$path->down unless $::isEmbedded; -$tree->get_selection->select_path($path); +# Gtk+-2.x workaround for not wrapped textview on first show +$tree->signal_connect(realize => sub { + my $path = Gtk2::TreePath->new_first; + $path->down; + $tree->get_selection->select_path($path); + $path->up; + $tree->get_selection->select_path($path); +}); $w->{rwindow}->show_all; undef $wait; gtkset_mousecursor_normal(); -- cgit v1.2.1