diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-02-20 11:38:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-02-20 11:38:23 +0000 |
commit | dec23550951d8521f46366b65a8abbc2004ec3b8 (patch) | |
tree | 3b9852142be690b2406e9be7b1d949b09b943761 | |
parent | f84a32b0127c148a0ff2df94f41b7f778f63207f (diff) | |
download | rpmdrake-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
-rw-r--r-- | rpmdrake.pm | 6 |
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'); |