summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-22 10:14:26 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-22 10:14:26 +0000
commitc3c6d55acd448e7c9c5680aaed31689ebdd26335 (patch)
tree5e5a43fcc4b7b77cca02ad39ea7861075da7f09a
parent3e4341339cf8d0b675f79bba58f494fa14eb81fc (diff)
downloadcontrol-center-c3c6d55acd448e7c9c5680aaed31689ebdd26335.tar
control-center-c3c6d55acd448e7c9c5680aaed31689ebdd26335.tar.gz
control-center-c3c6d55acd448e7c9c5680aaed31689ebdd26335.tar.bz2
control-center-c3c6d55acd448e7c9c5680aaed31689ebdd26335.tar.xz
control-center-c3c6d55acd448e7c9c5680aaed31689ebdd26335.zip
don't use extra space if we have only one icon in last row
-rwxr-xr-xcontrol-center5
1 files changed, 3 insertions, 2 deletions
diff --git a/control-center b/control-center
index c2e37618..f6d78653 100755
--- a/control-center
+++ b/control-center
@@ -1426,6 +1426,7 @@ foreach (@tree) {
<h3>$subtree->{title}</h3>
<TABLE BORDER=0 cellspacing="20" WIDTH="100%">
);
+ push @{$subtree->{list}}, "" if @{$subtree->{list}} % 2;
$string .= join("\n",
map {
"<TR>" . join("\n", grep { defined $_ } @$_) . "</TR>" }
@@ -1441,9 +1442,9 @@ foreach (@tree) {
};
# FIX ME: DO THIS AGAIN:
$tool_feedback{$label} = sub {}; #sub { $event_box->window && $event_box->window->set_cursor($hand_cursor) };
- my $file = ugtk2::_find_imgfile($icon);
+ my $real_icon = $icon ? '<IMG SRC="' . ugtk2::_find_imgfile($icon) . '">' : '';
my @widgets = (
- qq(<TD><A HREF="$label"><IMG SRC="$file"></A></TD>),
+ qq(<TD><A HREF="$label">$real_icon</A></TD>),
qq(<TD style="text-align: $align"><A HREF="$label">$programs{$label}{long_description}</A></TD>)
);
@widgets = reverse @widgets if lang::text_direction_rtl();