From 37af076e7dd776eb86e3c51f1708b15378c7f071 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 6 Jul 2003 18:00:44 +0000 Subject: let columns be sortable (lmontel request) --- perl-install/standalone/drakfloppy | 1 + 1 file changed, 1 insertion(+) (limited to 'perl-install/standalone/drakfloppy') diff --git a/perl-install/standalone/drakfloppy b/perl-install/standalone/drakfloppy index 4f5d87886..44f00fdc6 100755 --- a/perl-install/standalone/drakfloppy +++ b/perl-install/standalone/drakfloppy @@ -44,6 +44,7 @@ my $list_model = Gtk2::ListStore->new((Gtk2::GType->STRING) x 2); my $list = Gtk2::TreeView->new_with_model($list_model); each_index { $list->append_column(my $col = Gtk2::TreeViewColumn->new_with_attributes($_, Gtk2::CellRendererText->new, 'text' => $::i)); + $col->set_sort_column_id($::i); $col->set_min_width((200, 50)[$::i]); # $col->set_alignment(1.0) if $::i == 1; } (N("Module name"), N("Size")); -- cgit v1.2.1