diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-08-20 23:28:51 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-08-20 23:28:51 +0000 |
commit | bab6d34e888582399860da641d990da1ecf05e06 (patch) | |
tree | c8205db65baf4334486eaa522d67f1fc7bbcf27c | |
parent | 1cea8488e9dafbf723dbc4873018945a4ceed44a (diff) | |
download | drakx-net-bab6d34e888582399860da641d990da1ecf05e06.tar drakx-net-bab6d34e888582399860da641d990da1ecf05e06.tar.gz drakx-net-bab6d34e888582399860da641d990da1ecf05e06.tar.bz2 drakx-net-bab6d34e888582399860da641d990da1ecf05e06.tar.xz drakx-net-bab6d34e888582399860da641d990da1ecf05e06.zip |
do not use big titles, only bold labels
-rw-r--r-- | lib/network/connection_manager.pm | 4 | ||||
-rwxr-xr-x | lib/network/netcenter.pm | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm index 83def2d..e9cc7d9 100644 --- a/lib/network/connection_manager.pm +++ b/lib/network/connection_manager.pm @@ -255,6 +255,10 @@ sub update_networks { sub update_on_status_change { my ($cmanager) = @_; + if ($cmanager->{connection} && !keys %{$cmanager->{connection}{networks}}) { + use Data::Dumper; print Dumper($cmanager->{connection}, $cmanager->{connection}->get_status, $cmanager->{connection}->get_interface); + } + if ($cmanager->{gui}{buttons}{connect_toggle}) { my $disconnect = toggle_would_disconnect($cmanager); $cmanager->{gui}{buttons}{connect_toggle}->set_label($disconnect ? N("Disconnect") : N("Connect")); diff --git a/lib/network/netcenter.pm b/lib/network/netcenter.pm index 296ee08..c96d932 100755 --- a/lib/network/netcenter.pm +++ b/lib/network/netcenter.pm @@ -61,9 +61,9 @@ sub main { gtknew('HBox', children => [ 0, gtknew('Image', file => $_->get_type_icon), 0, gtknew('Label', padding => [ 5, 0 ]), - 1, gtknew('Title2', ellipsize => 'end', label => $_->get_description), + 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('Title2', label => sprintf("(%s)", $_->get_interface)), + 0, $cmanager->{gui}{labels}{interface} = gtknew('Label', alignment => [ 0, 0 ], text_markup => '<b>' . $_->get_interface . '</b>'), ]), gtknew('HBox', children_loose => [ gtknew('Label', padding => [ 5, 0 ]), |