summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/network/connection_manager.pm4
-rwxr-xr-xlib/network/netcenter.pm4
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 ]),