summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-03-01 08:54:07 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-03-01 08:54:07 +0000
commit78c2d449abdb0e21533d9ae5e36c2de9ef6b1a23 (patch)
treeefe614e9a581516b2f2d8a1b165a4d131de595b6
parentd73a51716caefb5c809e1a8780578449797da0e7 (diff)
downloadcontrol-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-xcontrol-center3
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';