diff options
author | Matthias Clasen <mclasen@fedoraproject.org> | 2009-04-15 23:04:54 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@fedoraproject.org> | 2009-04-15 23:04:54 +0000 |
commit | 14707350a7b988b2c08459c0411e17e9cdbf83b6 (patch) | |
tree | 13d5c76351863acb43d2264909dfee7d3c591607 | |
parent | b05590f7c15d9f2fd10fa2daefc072c7af35879d (diff) | |
download | gnome-applets-14707350a7b988b2c08459c0411e17e9cdbf83b6.tar.gz gnome-applets-14707350a7b988b2c08459c0411e17e9cdbf83b6.tar.xz gnome-applets-14707350a7b988b2c08459c0411e17e9cdbf83b6.zip |
fix network status tracking
-rw-r--r-- | gnome-applets.spec | 7 | ||||
-rw-r--r-- | gweather-network.patch | 22 |
2 files changed, 29 insertions, 0 deletions
diff --git a/gnome-applets.spec b/gnome-applets.spec index 0f1a8a5..c8b4fde 100644 --- a/gnome-applets.spec +++ b/gnome-applets.spec @@ -61,6 +61,9 @@ Patch40: gnome-applets-null-battstat.patch # and keep the mixer hidden away from the add to panel dialog Patch41: gnome-applets-no-mixer-icon.patch +# http://bugzilla.gnome.org/show_bug.cgi?id=579098 +Patch42: gweather-network.patch + BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: libgnomeui-devel >= %{libgnomeui_version} @@ -144,6 +147,7 @@ and more. %patch31 -p1 -b .fix-find %patch40 -p1 -b .battstat-null %patch41 -p1 -b .no-mixer-icon +%patch42 -p1 -b .network # We don't ship gnome-system-tools rm -rf modemlights @@ -338,6 +342,9 @@ fi %{_datadir}/PolicyKit/policy/org.gnome.cpufreqselector.policy %changelog +* Wed Apr 15 2009 Matthias Clasen <mclasen@redhat.com> - 1:2.26.1-2 +- Make gweather network status tracking work + * Mon Apr 13 2009 Matthias Clasen <mclasen@redhat.com> - 1:2.26.1-1 - Update to 2.26.1 diff --git a/gweather-network.patch b/gweather-network.patch new file mode 100644 index 0000000..95bc83e --- /dev/null +++ b/gweather-network.patch @@ -0,0 +1,22 @@ +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-15 18:53:13.123633124 -0400 ++++ gnome-applets-2.26.1/gweather/gweather-applet.c 2009-04-15 18:54:17.438384718 -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); + } + } |