From 3a7ba24a4532bc34baf4f54d3344d358fe201032 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 21 Aug 2003 18:05:42 +0000 Subject: workaround gtk bug #118047 --- perl-install/standalone/harddrake2 | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'perl-install') diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2 index 12a66c26e..1d189b97f 100755 --- a/perl-install/standalone/harddrake2 +++ b/perl-install/standalone/harddrake2 @@ -189,6 +189,7 @@ $w->{window}->add(gtkpack_(0, Gtk2::VBox->new(0, 0), ) ); +$text->set_wrap_mode('word'); $frame->set_size_request(300, 450) unless $::isEmbedded; # $tree->set_column_auto_resize(0, 1); my (@data, @configurators); @@ -325,14 +326,7 @@ $textcolumn->set_min_width(350); #$textcolumn->set_minmax_width(400); $textcolumn->set_sizing('GTK_TREE_VIEW_COLUMN_AUTOSIZE');#GROW_ONLY #$tree->columns_autosize(); -# 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); -}); +$tree->signal_connect(realize => sub { $tree->get_selection->select_path(Gtk2::TreePath->new_first) }); $w->{rwindow}->show_all; undef $wait; gtkset_mousecursor_normal(); -- cgit v1.2.1