From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-dev/2012-April/014757.html | 131 ++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 zarb-ml/mageia-dev/2012-April/014757.html (limited to 'zarb-ml/mageia-dev/2012-April/014757.html') diff --git a/zarb-ml/mageia-dev/2012-April/014757.html b/zarb-ml/mageia-dev/2012-April/014757.html new file mode 100644 index 000000000..e621967fd --- /dev/null +++ b/zarb-ml/mageia-dev/2012-April/014757.html @@ -0,0 +1,131 @@ + + + + [Mageia-dev] [soft-commits] [4252] fix removing several notebook pages + + + + + + + + + +

[Mageia-dev] [soft-commits] [4252] fix removing several notebook pages

+ Thierry Vignaud + thierry.vignaud at gmail.com +
+ Wed Apr 25 09:56:15 CEST 2012 +

+
+ +
On 24 April 2012 23:17,  <root at mageia.org> wrote:
+> fix removing several notebook pages
+
+(...)
+
+> --- drakx/trunk/perl-install/diskdrake/hd_gtk.pm	2012-04-24 20:10:47 UTC
+> (rev 4251)
+> +++ drakx/trunk/perl-install/diskdrake/hd_gtk.pm	2012-04-24 21:17:30 UTC
+> (rev 4252)
+> @@ -285,9 +285,15 @@
+>      $may_add->(raid2kind()) if @{$all_hds->{raids}};
+>      $may_add->(loopback2kind()) if @{$all_hds->{loopbacks}};
+>
+> -    @notebook = grep_index {
+> -	my $b = $_->{marked} or $notebook_widget->remove_page($::i);
+> -	$b;
+> +    my $i = 0;
+> +    @notebook = grep {
+> +	if ($_->{marked}) {
+> +	    $i++;
+> +	    1;
+> +	} else {
+> +	    $notebook_widget->remove_page($i);
+> +	    0;
+> +	}
+
+Wouldn't have been simpler to decrease $::i instead?
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+ +
+More information about the Mageia-dev +mailing list
+ -- cgit v1.2.1