… | |
… | |
244 | $self->{boardbox}->pack_start((my $aspect_frame = new Gtk2::AspectFrame "", 0.5, 0.5, 1, 0), 1, 1, 0); |
244 | $self->{boardbox}->pack_start((my $aspect_frame = new Gtk2::AspectFrame "", 0.5, 0.5, 1, 0), 1, 1, 0); |
245 | $aspect_frame->set (border_width => 0, shadow_type => 'none', label_xalign => 0.5); |
245 | $aspect_frame->set (border_width => 0, shadow_type => 'none', label_xalign => 0.5); |
246 | $self->{board_label} = $aspect_frame->get_label_widget; |
246 | $self->{board_label} = $aspect_frame->get_label_widget; |
247 | |
247 | |
248 | $aspect_frame->add($self->{canvas} = new Gtk2::DrawingArea); |
248 | $aspect_frame->add($self->{canvas} = new Gtk2::DrawingArea); |
249 | $self->{canvas}->double_buffered (0) if $::config->{conserve_memory}; |
249 | $self->{canvas}->double_buffered (0);# if $::config->{conserve_memory}; |
250 | |
250 | |
251 | $self->{canvas}->signal_connect(configure_event => \&configure_event, $self); |
251 | $self->{canvas}->signal_connect(configure_event => \&configure_event, $self); |
252 | $self->{canvas}->signal_connect(expose_event => \&expose_event, $self); |
252 | $self->{canvas}->signal_connect(expose_event => \&expose_event, $self); |
253 | |
253 | |
254 | # RIGHT PANE |
254 | # RIGHT PANE |