summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-02-23 15:19:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-02-23 15:19:47 +0000
commit1401df1a732d50b4940f4b7d6207d223bda301bd (patch)
treef6416d85820494e7353ed1d929376609e86bb135 /perl-install
parentba30a9f23804d313361679e7a17f5ac27e4ffc7a (diff)
downloaddrakx-1401df1a732d50b4940f4b7d6207d223bda301bd.tar
drakx-1401df1a732d50b4940f4b7d6207d223bda301bd.tar.gz
drakx-1401df1a732d50b4940f4b7d6207d223bda301bd.tar.bz2
drakx-1401df1a732d50b4940f4b7d6207d223bda301bd.tar.xz
drakx-1401df1a732d50b4940f4b7d6207d223bda301bd.zip
move the 'use my_gtk' in 'require my_gtk' and only if needed
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/Xconfigurator.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/Xconfigurator.pm b/perl-install/Xconfigurator.pm
index 30c4fdc4e..38452f0a3 100644
--- a/perl-install/Xconfigurator.pm
+++ b/perl-install/Xconfigurator.pm
@@ -11,7 +11,6 @@ use run_program;
use Xconfigurator_consts;
use any;
use modules;
-use my_gtk qw(:wrappers);
my $tmpconfig = "/tmp/Xconfig";
@@ -571,6 +570,10 @@ sub autoDefaultResolution {
sub chooseResolutionsGtk($$;$) {
my ($card, $chosen_depth, $chosen_w) = @_;
+
+ require my_gtk;
+ my_gtk->import(qw(:wrappers));
+
my $W = my_gtk->new(_("Resolution"));
my %txt2depth = reverse %depths;
my ($r, $depth_combo, %w2depth, %w2h, %w2widget);