diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-03-01 08:54:07 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-03-01 08:54:07 +0000 |
commit | 78c2d449abdb0e21533d9ae5e36c2de9ef6b1a23 (patch) | |
tree | efe614e9a581516b2f2d8a1b165a4d131de595b6 | |
parent | d73a51716caefb5c809e1a8780578449797da0e7 (diff) | |
download | control-center-78c2d449abdb0e21533d9ae5e36c2de9ef6b1a23.tar control-center-78c2d449abdb0e21533d9ae5e36c2de9ef6b1a23.tar.gz control-center-78c2d449abdb0e21533d9ae5e36c2de9ef6b1a23.tar.bz2 control-center-78c2d449abdb0e21533d9ae5e36c2de9ef6b1a23.tar.xz control-center-78c2d449abdb0e21533d9ae5e36c2de9ef6b1a23.zip |
workaround a bug triggered by warning pragma absence where drawingarea
allocation is badly reported on first run (???)
-rwxr-xr-x | control-center | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/control-center b/control-center index d244ea9c..c9fd3e18 100755 --- a/control-center +++ b/control-center @@ -515,7 +515,7 @@ gtkadd($window_global, 0, Gtk2::HSeparator->new, 1, my $notebook_global = gtkset_name(Gtk2::Notebook->new, 'mcc'), 1, gtkpack(my $emb_box = Gtk2::VBox->new(0, 0), - my $wait_darea = Gtk2::DrawingArea->new, + my $wait_darea = gtkset_size_request(Gtk2::DrawingArea->new, -1, -1), ), 0, Gtk2::HSeparator->new, ), @@ -719,6 +719,7 @@ $notebook_global->signal_connect(switch_page => sub { $window_global->show_all; show_hide_previous(0); $emb_box->hide; +$wait_darea->realize; $SIG{USR1} = 'IGNORE'; $SIG{USR2} = 'IGNORE'; |