summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-13 18:57:39 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-13 18:57:39 +0000
commitc898507b862a21d36aa920af258c9246794b5f6d (patch)
treecdd60e529bf323ed0a711e526238e122d69c7f15 /lib
parent326061df45f63410f1c1aacdcad30c5c86edb5a8 (diff)
downloaddrakx-net-c898507b862a21d36aa920af258c9246794b5f6d.tar
drakx-net-c898507b862a21d36aa920af258c9246794b5f6d.tar.gz
drakx-net-c898507b862a21d36aa920af258c9246794b5f6d.tar.bz2
drakx-net-c898507b862a21d36aa920af258c9246794b5f6d.tar.xz
drakx-net-c898507b862a21d36aa920af258c9246794b5f6d.zip
add network connection type label
Diffstat (limited to 'lib')
-rwxr-xr-xlib/network/netcenter.pm11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm
index 19b4207..bc8c508 100755
--- a/lib/network/netcenter.pm
+++ b/lib/network/netcenter.pm
@@ -66,9 +66,14 @@ sub main {
my $head = gtknew('HBox', children => [
0, $cmanager->{gui}{status_image} = gtknew('Image'),
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 => $_->get_interface ? '<b>' . $_->get_interface . '</b>' : ""),
+ 1, gtknew('VBox', children_tight => [
+ gtknew('HBox', children => [
+ 1, gtknew('Label', alignment => [ 0, 0 ], text_markup => '<b>' . $_->get_type_name . '</b>'),
+ 0, gtknew('Label', padding => [ 2, 0 ]),
+ 0, $cmanager->{gui}{labels}{interface} = gtknew('Label', alignment => [ 0, 0 ], text_markup => $_->get_interface ? '<b>' . $_->get_interface . '</b>' : ""),
+ ]),
+ gtknew('Label', ellipsize => 'end', alignment => [ 0, 0 ], text_markup => $_->get_description),
+ ]),
]);
my $content = gtknew('HBox', children => [
0, gtknew('Label', padding => [ 5, 0 ]),