From 8bd3be354d7c987ca7a3b027839cf328c71a4f52 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 20 Feb 2007 11:10:50 +0000 Subject: don't redo what ugtk2 already does for us --- edit-urpm-sources.pl | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'edit-urpm-sources.pl') diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl index 229239e5..699fafc7 100755 --- a/edit-urpm-sources.pl +++ b/edit-urpm-sources.pl @@ -41,16 +41,8 @@ BEGIN { #- for mcc } } -BEGIN { - eval { - require ugtk2; ugtk2->import(qw(:all)); - require mygtk2; mygtk2->import(qw(gtknew gtkset)); - }; - if ($@) { - print "This program cannot be run in console mode ($@_).\n"; - POSIX::_exit(0); #- skip ugtk2::END - } -} +use mygtk2 qw(gtknew gtkset); +use ugtk2 qw(:all); $ugtk2::wm_icon = "title-install"; $::isStandalone = 1; -- cgit v1.2.1