aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-02-20 11:38:23 +0000
committerThierry Vignaud <tv@mandriva.org>2007-02-20 11:38:23 +0000
commitdec23550951d8521f46366b65a8abbc2004ec3b8 (patch)
tree3b9852142be690b2406e9be7b1d949b09b943761 /rpmdrake.pm
parentf84a32b0127c148a0ff2df94f41b7f778f63207f (diff)
downloadrpmdrake-dec23550951d8521f46366b65a8abbc2004ec3b8.tar
rpmdrake-dec23550951d8521f46366b65a8abbc2004ec3b8.tar.gz
rpmdrake-dec23550951d8521f46366b65a8abbc2004ec3b8.tar.bz2
rpmdrake-dec23550951d8521f46366b65a8abbc2004ec3b8.tar.xz
rpmdrake-dec23550951d8521f46366b65a8abbc2004ec3b8.zip
simplify gfx initialization, ugtk2 already take care of that
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index bf3ff0f2..4e928aa3 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -85,11 +85,7 @@ our @EXPORT = qw(
our $typical_width = 280;
unshift @::textdomains, 'rpmdrake', 'urpmi';
-eval { require ugtk2; ugtk2->import(qw(:all)) };
-if ($@) {
- print "This program cannot be run in console mode.\n";
- POSIX::_exit(0); #- skip ugtk2::END
-}
+use ugtk2 qw(:all);
ugtk2::add_icon_path('/usr/share/rpmdrake/icons');
Locale::gettext::bind_textdomain_codeset('rpmdrake', 'UTF8');