From 23d626aa3e8bd88d32bc231381ed8ababb94c023 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 29 Aug 2003 20:43:21 +0000 Subject: fix title when not embedded (print right number of network interfaces instead of displaying a big random number) --- perl-install/standalone/drakconnect | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/perl-install/standalone/drakconnect b/perl-install/standalone/drakconnect index f08ff6758..d5100538e 100755 --- a/perl-install/standalone/drakconnect +++ b/perl-install/standalone/drakconnect @@ -1,8 +1,11 @@ #!/usr/bin/perl -# DrakConnect +# DrakConnect $Id$ -# Copyright (C) 1999-2002 MandrakeSoft (damien@mandrakesoft.com) +# Copyright (C) 1999-2003 MandrakeSoft +# Damien "Dam's" Krotkine +# Damien "poulpy" Chaumette +# Thierry Vignaud # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -75,7 +78,7 @@ my $window1 = ugtk2->new('drakconnect'); $window1->{rwindow}->signal_connect(delete_event => sub { ugtk2->exit(0) }); unless ($::isEmbedded) { $window1->{rwindow}->set_position('center'); - $window1->{rwindow}->set_title(N("Network configuration (%d adapters)", @all_cards)); + $window1->{rwindow}->set_title(N("Network configuration (%d adapters)", scalar @all_cards)); $window1->{rwindow}->set_size_request(500, 400); } $window1->{rwindow}->set_border_width(10); -- cgit v1.2.1