diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-01-13 07:53:33 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-01-13 07:53:33 +0000 |
commit | 64527714ad45ce996d29b8f81d3ecc7f0b458fc0 (patch) | |
tree | c6e6697932be0461fe3b16d3aedfa7ba37808fe2 /perl-install/standalone | |
parent | 3412e21e32e68efeae0b3ce25bf4f0b4cc306934 (diff) | |
download | drakx-backup-do-not-use-64527714ad45ce996d29b8f81d3ecc7f0b458fc0.tar drakx-backup-do-not-use-64527714ad45ce996d29b8f81d3ecc7f0b458fc0.tar.gz drakx-backup-do-not-use-64527714ad45ce996d29b8f81d3ecc7f0b458fc0.tar.bz2 drakx-backup-do-not-use-64527714ad45ce996d29b8f81d3ecc7f0b458fc0.tar.xz drakx-backup-do-not-use-64527714ad45ce996d29b8f81d3ecc7f0b458fc0.zip |
this is not a per class help, but we told the user what
he can achieve (aka not only on startup)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/harddrake2 | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2 index f33a8cccb..2f89a5ea3 100755 --- a/perl-install/standalone/harddrake2 +++ b/perl-install/standalone/harddrake2 @@ -155,18 +155,11 @@ $w->{window}->add(gtkpack_(0, Gtk2::VBox->new(0, 0), # $tree->set_column_auto_resize(0, 1); my (%data, %configurators); -gtktext_append($text, [ [ N_("Click on a device in the left tree in order to get its information displayed here.") ] ]); $tree->append_column(my $pixcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererPixbuf->new, 'pixbuf' => 0)); $tree->append_column(my $textcolumn = Gtk2::TreeViewColumn->new_with_attributes(undef, Gtk2::CellRendererText->new, 'text' => 1)); $tree->set_headers_visible(0); -my $select_count; my $selection = gtksignal_connect($tree->get_selection(), 'changed' => sub { my ($select) = @_; - # gtk+ send us a dummy signal on realization - unless ($select_count) { - $select_count = 1; - return 1; - } my ($model, $iter) = $select->get_selected(); if ($model) { my $id = $model->get($iter, 1); @@ -183,6 +176,7 @@ my $selection = gtksignal_connect($tree->get_selection(), 'changed' => sub { print "Warning: skip \"$_\" field => \"$current_device->{$_}\"\n\n" unless $fields{$_}[0]; }; + # hide buttons if needed # we've valid driver, let's offer to configure it show_hide($current_device->{driver} !~ /(unknown|.*\|.*)/ && $current_device->{driver} !~ /^Card:/, $module_cfg_button); @@ -191,8 +185,7 @@ my $selection = gtksignal_connect($tree->get_selection(), 'changed' => sub { return 1; } } - # hide buttons if needed - $text->get_buffer->set_text('', -1); # erase all previous text + $text->get_buffer->set_text(N_("Click on a device in the left tree in order to get its information displayed here."), -1); $config_button->hide; $module_cfg_button->hide; }); |