diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-08-14 21:51:08 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-08-14 21:51:08 +0000 |
commit | a93e62d784e881146d533f917309416796766e19 (patch) | |
tree | 2e5a23492836aa50a18f3520d3be17c1aab45ab2 /perl-install/interactive_gtk.pm | |
parent | 63dc2a3ea6baf4173f31bd9df3fc1b28b1c561eb (diff) | |
download | drakx-a93e62d784e881146d533f917309416796766e19.tar drakx-a93e62d784e881146d533f917309416796766e19.tar.gz drakx-a93e62d784e881146d533f917309416796766e19.tar.bz2 drakx-a93e62d784e881146d533f917309416796766e19.tar.xz drakx-a93e62d784e881146d533f917309416796766e19.zip |
- small fixes (esp. gtk sensitive handling)
- add ask_file
- add "gtk" preference field
Diffstat (limited to 'perl-install/interactive_gtk.pm')
-rw-r--r-- | perl-install/interactive_gtk.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/perl-install/interactive_gtk.pm b/perl-install/interactive_gtk.pm index c094730fd..0e4ec437d 100644 --- a/perl-install/interactive_gtk.pm +++ b/perl-install/interactive_gtk.pm @@ -30,6 +30,12 @@ sub ask_warn { &interactive::ask_warn; } +sub ask_fileW { + my ($o, $title, $dir) = @_; + $o->_ask_file($title, $dir); + $o->main; +} + sub create_boxradio { my ($e, $may_go_to_next, $changed, $double_click) = @_; my @l = map { may_apply($e->{format}, $_) } @{$e->{list}}; @@ -319,7 +325,7 @@ sub ask_from_entries_refW { my $set_all = sub { $ignore = 1; $_->{set}->(${$_->{e}{val}}) foreach @widgets_always, @widgets_advanced; - $_->{w}->set_sensitive(!$_->{e}{disabled}()) foreach @widgets_always, @widgets_advanced; + $_->{real_w}->set_sensitive(!$_->{e}{disabled}()) foreach @widgets_always, @widgets_advanced; $ignore = 0; }; my $get_all = sub { @@ -399,7 +405,7 @@ sub ask_from_entries_refW { sub { if ($_[1]{type} =~ /^2/) { $mainw->{retval} = 1; Gtk->main_quit } } : ''; my @para = ($e, $may_go_to_next, $changed, $quit_if_double_click); - my $use_boxradio = @{$e->{list}} <= 8; + my $use_boxradio = exists $e->{gtk}{use_boxradio} ? $e->{gtk}{use_boxradio} : @{$e->{list}} <= 8; if ($e->{help}) { #- used only when needed, as key bindings are dropped by List (CList does not seems to accepts Tooltips). |