… | |
… | |
146 | ]; |
146 | ]; |
147 | |
147 | |
148 | sub INIT_INSTANCE { |
148 | sub INIT_INSTANCE { |
149 | my ($self) = @_; |
149 | my ($self) = @_; |
150 | |
150 | |
|
|
151 | $self->add ($self->{window} = my $window = new Gtk2::EventBox); # for bg |
|
|
152 | |
151 | $self->add (my $vbox = new Gtk2::VBox); |
153 | $window->add (my $vbox = new Gtk2::VBox); |
152 | |
154 | |
153 | $vbox->pack_start (($self->{name} = new Gtk2::Label "-"), 1, 1, 0); |
155 | $vbox->pack_start (($self->{name} = new Gtk2::Label "-"), 1, 1, 0); |
154 | $vbox->pack_start (($self->{info} = new Gtk2::Label "-"), 1, 1, 0); |
156 | $vbox->pack_start (($self->{info} = new Gtk2::Label "-"), 1, 1, 0); |
155 | $vbox->pack_start (($self->{clock} = new game::goclock), 1, 1, 0); |
157 | $vbox->pack_start (($self->{clock} = new game::goclock), 1, 1, 0); |
156 | |
158 | |
157 | $vbox->add ($self->{imagebox} = new Gtk2::VBox); |
159 | $vbox->add ($self->{imagebox} = new Gtk2::VBox); |
158 | |
160 | |
159 | $self; |
161 | $self; |
|
|
162 | } |
|
|
163 | |
|
|
164 | sub SET_PROPERTY { |
|
|
165 | my ($self, $pspec, $value) = @_; |
|
|
166 | |
|
|
167 | $self->{$pspec->get_name} = $value; |
|
|
168 | |
|
|
169 | $self->set_name ("userpanel-$self->{colour}"); |
160 | } |
170 | } |
161 | |
171 | |
162 | sub configure { |
172 | sub configure { |
163 | my ($self, $app, $user, $rules) = @_; |
173 | my ($self, $app, $user, $rules) = @_; |
164 | |
174 | |