summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-22 18:03:43 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-22 18:03:43 +0000
commit184d43564255d771d45e5efda5605e8669d9303b (patch)
treec1643df5aedb66fcc4cf379f5130b25f9f1ab370
parentd10c27caee07720ee0145a0a20da07919448e898 (diff)
downloaddrakx-net-184d43564255d771d45e5efda5605e8669d9303b.tar
drakx-net-184d43564255d771d45e5efda5605e8669d9303b.tar.gz
drakx-net-184d43564255d771d45e5efda5605e8669d9303b.tar.bz2
drakx-net-184d43564255d771d45e5efda5605e8669d9303b.tar.xz
drakx-net-184d43564255d771d45e5efda5605e8669d9303b.zip
make sure widgets got realized before any event callback is called (#36537)
-rw-r--r--NEWS2
-rwxr-xr-xbin/net_monitor3
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 69a6ff9..dbbaaf2 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,7 @@
- net_monitor:
o make expose_event callback more robust (#36537)
+ o make sure widgets got realized before any event callback is called
+ (#36537)
0.25:
- draksambashare (aginies):
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);