summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-07-30 11:26:24 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-07-30 11:26:24 +0000
commit3bfb1d3824e7f00d7e129e2aa1d5e8e9c08bf006 (patch)
tree831ab9f293b6278ba4721d0adfd618d4a6c54383 /perl-install
parent5f1bf5741fe0c52a30a6c7f6657c436cd294cfc4 (diff)
downloaddrakx-3bfb1d3824e7f00d7e129e2aa1d5e8e9c08bf006.tar
drakx-3bfb1d3824e7f00d7e129e2aa1d5e8e9c08bf006.tar.gz
drakx-3bfb1d3824e7f00d7e129e2aa1d5e8e9c08bf006.tar.bz2
drakx-3bfb1d3824e7f00d7e129e2aa1d5e8e9c08bf006.tar.xz
drakx-3bfb1d3824e7f00d7e129e2aa1d5e8e9c08bf006.zip
like in all other tools, revert ugly code printing "This program
cannot be run in console mode", which is easier done in ugtk2.pm
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/standalone/net_applet6
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet
index 3af100990..76e808a03 100644
--- a/perl-install/standalone/net_applet
+++ b/perl-install/standalone/net_applet
@@ -8,11 +8,7 @@ use Digest::MD5;
use Gtk2::TrayIcon;
-eval { require ugtk2; ugtk2->import(qw(:all)); require Gtk2::Pango };
-if ($@) {
- print "This program cannot be run in console mode.\n";
- c::_exit(0); #- skip ugtk2::END
-}
+use ugtk2 qw(:create :helpers :wrappers);
my ($eventbox, $img);
my ($menu, $_timeout);