diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-10 12:39:57 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-10 12:39:57 +0000 |
commit | ab076f395c4012ef290a1c9e5314570ecec14ffd (patch) | |
tree | 814ca439b2ad4eace2529b53e15eee6480557fb4 | |
parent | 8b65fe2d1e3a0bdc4079be430634475586ce148c (diff) | |
download | drakx-net-ab076f395c4012ef290a1c9e5314570ecec14ffd.tar drakx-net-ab076f395c4012ef290a1c9e5314570ecec14ffd.tar.gz drakx-net-ab076f395c4012ef290a1c9e5314570ecec14ffd.tar.bz2 drakx-net-ab076f395c4012ef290a1c9e5314570ecec14ffd.tar.xz drakx-net-ab076f395c4012ef290a1c9e5314570ecec14ffd.zip |
do not show markup instead of interface name if interface does not exist (#33241)
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | lib/network/netcenter.pm | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,6 +1,7 @@ - draknetcenter: o use new status icons o add Quit button + o do not show markup instead of interface name if interface does not exist (#33241) 0.14: - draknetcenter: diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index c779bf8..242e8f7 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -64,7 +64,7 @@ sub main { 0, gtknew('Label', padding => [ 5, 0 ]), 1, gtknew('Label', ellipsize => 'end', alignment => [ 0, 0 ], text_markup => '<b>' . $_->get_description . '</b>'), 0, gtknew('Label', padding => [ 2, 0 ]), - 0, $cmanager->{gui}{labels}{interface} = gtknew('Label', alignment => [ 0, 0 ], text_markup => '<b>' . $_->get_interface . '</b>'), + 0, $cmanager->{gui}{labels}{interface} = gtknew('Label', alignment => [ 0, 0 ], text_markup => $_->get_interface ? '<b>' . $_->get_interface . '</b>' : ""), ]); my $content = gtknew('HBox', children => [ 0, gtknew('Label', padding => [ 5, 0 ]), |