summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);