summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/fs/partitioning_wizard.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/perl-install/fs/partitioning_wizard.pm b/perl-install/fs/partitioning_wizard.pm
index 3d1d8d849..ad54cb1be 100644
--- a/perl-install/fs/partitioning_wizard.pm
+++ b/perl-install/fs/partitioning_wizard.pm
@@ -494,14 +494,15 @@ sub main {
my $sol;
if ($o->isa('interactive::gtk')) {
- use mygtk2;
-
+ require mygtk2;
+ import mygtk2 qw(gtknew);
+
my $mainw = ugtk2->new(N("Partitioning"), %$o, if__($::main_window, transient => $::main_window));
$mainw->{box_allow_grow} = 1;
mygtk2::set_main_window_size($mainw->{rwindow});
- use diskdrake::hd_gtk;
+ require diskdrake::hd_gtk;
diskdrake::hd_gtk::load_theme();
my $mainbox = Gtk2::VBox->new;