From 184d43564255d771d45e5efda5605e8669d9303b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 22 Feb 2008 18:03:43 +0000 Subject: make sure widgets got realized before any event callback is called (#36537) --- bin/net_monitor | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/net_monitor') diff --git a/bin/net_monitor b/bin/net_monitor index 659df33..bf8f4f0 100755 --- a/bin/net_monitor +++ b/bin/net_monitor @@ -136,6 +136,9 @@ $gca->set_foreground($colora); $statusbar->push(1, N("Wait please, testing your connection...")); $window1->{window}->show_all; +# make sure widgets got realized before any event callback is called (#36537): +gtkflush(); + Glib::Timeout->add(1000, \&rescan); my $time_tag2 = Glib::Timeout->add(1000, \&update); -- cgit v1.2.1