1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
diff -up gnome-applets-2.26.1/gweather/gweather-applet.c.network gnome-applets-2.26.1/gweather/gweather-applet.c
--- gnome-applets-2.26.1/gweather/gweather-applet.c.network 2009-04-12 21:09:20.000000000 -0400
+++ gnome-applets-2.26.1/gweather/gweather-applet.c 2009-05-26 21:05:49.525615526 -0400
@@ -17,6 +17,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h>
#include <gconf/gconf-client.h>
#include <panel-applet.h>
@@ -552,6 +555,8 @@ state_notify (DBusPendingCall *pending,
DBUS_TYPE_UINT32, &result,
DBUS_TYPE_INVALID)) {
if (result == NM_STATE_CONNECTED) {
+ /* thank you, glibc */
+ res_init ();
gweather_update (gw_applet);
}
}
@@ -614,7 +619,7 @@ setup_network_monitor (GWeatherApplet *g
dbus_connection_add_filter (dbus, filter_func, gw_applet, NULL);
dbus_bus_add_match (dbus,
"type='signal',"
- "interface='" NM_DBUS_INTERFACE_DEVICE "'",
+ "interface='" NM_DBUS_INTERFACE "'",
NULL);
}
}
|