From 72cdfb169816a60385535eceb9f40292e7e383e7 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 30 Oct 2001 19:10:41 +0000 Subject: use isa rather than ref to test if we're gtk --- perl-install/standalone/drakgw | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone/drakgw') diff --git a/perl-install/standalone/drakgw b/perl-install/standalone/drakgw index df017a02c..6ec6599b7 100755 --- a/perl-install/standalone/drakgw +++ b/perl-install/standalone/drakgw @@ -57,7 +57,7 @@ my $in = 'interactive'->vnew('su', 'default'); !$::isEmbedded && $in->isa('interactive_gtk') and $::isWizard=1; -pur_gtk_mode() if $::isEmbedded && ref($in) =~ /gtk/; +pur_gtk_mode() if $::isEmbedded && $in->isa('interactive_gtk'); sub sys { system(@_) == 0 or log::l("[drakgw] Warning, sys failed for $_[0]") } @@ -666,6 +666,9 @@ Click on Configure to launch the setup wizard.", $setup_state)); #------------------------------------------------- #- $Log$ +#- Revision 1.56 2001/10/30 19:10:41 gc +#- use isa rather than ref to test if we're gtk +#- #- Revision 1.55 2001/10/02 10:28:14 gc #- don't call pkgs_install when no package needs to be installed #- -- cgit v1.2.1