From 06d300a1e541a75434ceb15d19c6e254aedf6dad Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 7 Feb 2002 13:28:50 +0000 Subject: - don't pop the "do you want to install samba?" - rwindow is not a window when embedded, so set_default_size only if possible --- perl-install/diskdrake/smbnfs_gtk.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/perl-install/diskdrake/smbnfs_gtk.pm b/perl-install/diskdrake/smbnfs_gtk.pm index f9fed7f78..3d46ad209 100644 --- a/perl-install/diskdrake/smbnfs_gtk.pm +++ b/perl-install/diskdrake/smbnfs_gtk.pm @@ -17,11 +17,14 @@ my ($all_hds, $in, $current_entry); sub main { ($in, $all_hds, my $type) = @_; my ($check, $create) = $type eq 'smb' ? (\&network::smb::check, \&smb_create) : (\&network::nfs::check, \&nfs_create); - $check->($in) or return; + { + local $my_gtk::pop_it = 1; + $check->($in) or return; + } my $w = my_gtk->new('DiskDrake'); $create->($w->{window}); - $w->{rwindow}->set_default_size(400, 300); + $w->{rwindow}->set_default_size(400, 300) if $w->{rwindow}->can('set_default_size'); $w->{window}->show_all; $w->main; } -- cgit v1.2.1