GNOME Bugzilla – Bug 488824
get weather info when going online
Last modified: 2008-11-11 08:13:25 UTC
here is a quick patch to listen for NetworkManager online/offline status changes, and update the weather info when going online - it is very annoying that the weather applet sits for 30 minutes with the "unknown" icon on the panel even though I am online.
Created attachment 97559 [details] the patch Note that this patch adds a build dependency against NetworkManager, since it uses the header files to get the right defines.
the constants in your patch aren't in my version of networkmanager. what version did you write this patch against?
Ah, you are right. The patch was written against the 0.7.0 snapshot that is shipping with Fedora 8. NM 0.7 will be released in a few weeks. It is probably possible to rewrite the patch in a way that makes it work with both 0.6.5 and 0.7, using a different signal. I'll get back to you on that.
Created attachment 102257 [details] [review] new patch Finally redone the patch to work with NM 0.6
*** Bug 154535 has been marked as a duplicate of this bug. ***
Ping. Any chance to review the new patch ?
I've applied the patch and added the autoconf magic (I made NetworkManager optional rather than a requirement). I have the suspicion that things don't work out as well as they could if an update is already in progress (and stalled because the network has disappeared), but since this is probably an artifact of my short network-outages to test this, it is probably not a big issue.