summaryrefslogtreecommitdiffstats
path: root/lib/network/connection_manager.pm
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-03-14 17:51:28 +0000
committerOlivier Blin <oblin@mandriva.com>2008-03-14 17:51:28 +0000
commit0bf35d9e4eb8f712211b2805b76c273b1cc56049 (patch)
treee6e2b411536465a64926acca8063f925c312837f /lib/network/connection_manager.pm
parent3a83d39dc3b6f5112158c067f4894d57e65aabd5 (diff)
downloaddrakx-net-0bf35d9e4eb8f712211b2805b76c273b1cc56049.tar
drakx-net-0bf35d9e4eb8f712211b2805b76c273b1cc56049.tar.gz
drakx-net-0bf35d9e4eb8f712211b2805b76c273b1cc56049.tar.bz2
drakx-net-0bf35d9e4eb8f712211b2805b76c273b1cc56049.tar.xz
drakx-net-0bf35d9e4eb8f712211b2805b76c273b1cc56049.zip
bless network::connection_manager objects
Diffstat (limited to 'lib/network/connection_manager.pm')
-rw-r--r--lib/network/connection_manager.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/network/connection_manager.pm b/lib/network/connection_manager.pm
index 9d6145f..cb24859 100644
--- a/lib/network/connection_manager.pm
+++ b/lib/network/connection_manager.pm
@@ -28,9 +28,11 @@ sub create_pixbufs() {
};
}
-sub create {
- my ($in, $net, $w, $pixbufs) = @_;
- { in => $in, net => $net, gui => { w => $w, pixbufs => $pixbufs } };
+sub new {
+ my ($class, $in, $net, $w, $pixbufs) = @_;
+ bless {
+ in => $in, net => $net, gui => { w => $w, pixbufs => $pixbufs },
+ }, $class;
}
sub set_connection {