summaryrefslogtreecommitdiffstats
path: root/perl-install/ugtk.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-01-28 15:39:51 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-01-28 15:39:51 +0000
commit0f1a363af19d12e8bc38ec02f5a99ecbae1eadc1 (patch)
tree8ca816bf1fff041b773ac512d3a1e3604e75743e /perl-install/ugtk.pm
parent09676045bd344ea218b7e2abeec8d2f0b5334d76 (diff)
downloaddrakx-0f1a363af19d12e8bc38ec02f5a99ecbae1eadc1.tar
drakx-0f1a363af19d12e8bc38ec02f5a99ecbae1eadc1.tar.gz
drakx-0f1a363af19d12e8bc38ec02f5a99ecbae1eadc1.tar.bz2
drakx-0f1a363af19d12e8bc38ec02f5a99ecbae1eadc1.tar.xz
drakx-0f1a363af19d12e8bc38ec02f5a99ecbae1eadc1.zip
cleaning the utf8 support stuff:
- consolidate check_for_xserver() to check for x11 access - introduce prepare_gtk2() to do what gtk+2 needs, so that tools that're not part of drakxtools (aka: rpmdrake, mcc, ...) can just do : unshift @::textdomains, 'drakconf'; prepare_gtk2();
Diffstat (limited to 'perl-install/ugtk.pm')
-rw-r--r--perl-install/ugtk.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/ugtk.pm b/perl-install/ugtk.pm
index 28c2848ec..d69dcfd1f 100644
--- a/perl-install/ugtk.pm
+++ b/perl-install/ugtk.pm
@@ -16,7 +16,7 @@ $EXPORT_TAGS{all} = [ map { @$_ } values %EXPORT_TAGS ];
use Gtk;
if (!$::no_ugtk_init) {
- !$ENV{DISPLAY} || system('/usr/X11R6/bin/xtest') and die "Cannot be run in console mode.\n";
+ !check_for_xserver() and die "Cannot be run in console mode.\n";
Gtk->init;
eval { require Gtk::Gdk::Pixbuf; Gtk::Gdk::Pixbuf->init };
$use_pixbuf = $@ ? 0 : 1;