Skip to content

Commit 464a3f5

Browse files
committed
FIXED: GTK unrealized scroller warning
1 parent b6a3667 commit 464a3f5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

lib/App/Asciio/GTK/Asciio/TabManager.pm

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,17 @@ $scroller->set_policy('automatic', 'automatic') ; # show scrollbars as needed
227227
$scroller->set_hexpand(TRUE) ;
228228
$scroller->set_vexpand(TRUE) ;
229229
$scroller->add($asciio) ;
230+
$scroller->signal_connect
231+
(
232+
'map' => sub
233+
{
234+
$asciio->{hadjustment} = $scroller->get_hadjustment() ;
235+
$asciio->{vadjustment} = $scroller->get_vadjustment() ;
236+
}
237+
) ;
230238

231239
$asciio->set_hexpand(TRUE); $asciio->set_vexpand(TRUE) ;
232240

233-
$asciio->{hadjustment} = $scroller->get_hadjustment() ;
234-
$asciio->{vadjustment} = $scroller->get_vadjustment() ;
235-
236241
# my $page_num = $self->{notebook}->append_page($scroller, $label) ;
237242
# push @{$self->{asciios}}, $asciio ;
238243
my $current_page = $self->{notebook}->get_current_page() ;

0 commit comments

Comments
 (0)