rpms/gnome-applets/devel gnome-applets-2.15.90-poll-less.patch, NONE, 1.1 gnome-applets.spec, 1.175, 1.176
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Fri Sep 1 17:43:48 UTC 2006
Author: mclasen
Update of /cvs/dist/rpms/gnome-applets/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv16329
Modified Files:
gnome-applets.spec
Added Files:
gnome-applets-2.15.90-poll-less.patch
Log Message:
poll less often
gnome-applets-2.15.90-poll-less.patch:
battstat_applet.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletion(-)
--- NEW FILE gnome-applets-2.15.90-poll-less.patch ---
--- gnome-applets-2.15.90/battstat/battstat_applet.c.poll-less 2006-09-01 13:39:48.000000000 -0400
+++ gnome-applets-2.15.90/battstat/battstat_applet.c 2006-09-01 13:42:15.000000000 -0400
@@ -1545,6 +1545,9 @@
AtkObject *atk_widget;
const char *err;
int no_hal;
+ BatteryStatus info;
+ int timeout_value;
+
if (DEBUG) g_print("main()\n");
@@ -1583,7 +1586,16 @@
create_layout (battstat);
setup_text_orientation( battstat );
- battstat->pixtimer = gtk_timeout_add (1000, check_for_updates, battstat);
+ power_management_getinfo( &info );
+ /* if we're on ac power and no batter is present, we're probably not a laptop
+ * so lets set a higher timer value
+ */
+ if (info.on_ac_power && info.present==0)
+ timeout_value=10000;
+ else
+ timeout_value=5000;
+
+ battstat->pixtimer = gtk_timeout_add (timeout_value, check_for_updates, battstat);
panel_applet_setup_menu_from_file (PANEL_APPLET (battstat->applet),
DATADIR,
Index: gnome-applets.spec
===================================================================
RCS file: /cvs/dist/rpms/gnome-applets/devel/gnome-applets.spec,v
retrieving revision 1.175
retrieving revision 1.176
diff -u -r1.175 -r1.176
--- gnome-applets.spec 28 Aug 2006 16:51:17 -0000 1.175
+++ gnome-applets.spec 1 Sep 2006 17:43:46 -0000 1.176
@@ -32,7 +32,7 @@
Summary: Small applications for the GNOME panel
Name: gnome-applets
Version: 2.15.90
-Release: 5%{?dist}
+Release: 6%{?dist}
Epoch: 1
License: GPL
Group: User Interface/Desktops
@@ -57,6 +57,9 @@
# http://bugzilla.gnome.org/show_bug.cgi?id=353163
Patch20: keyboard-drawing-redraw.patch
+# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=204858
+Patch21: gnome-applets-2.15.90-poll-less.patch
+
URL: http://www.gnome.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -143,6 +146,8 @@
%patch19 -p1 -b .corner
%patch20 -p1 -b .redraw
+%patch21 -p1 -b .poll-less
+
cp gswitchit/gswitchit-applet.png gswitchit/gswitchit-properties-capplet.png
# We don't ship gnome-system-tools
@@ -309,6 +314,9 @@
%{_libdir}/pkgconfig/gweather.pc
%changelog
+* Fri Sep 1 2006 Matthias Clasen <mclasen at redhat.com> - 1:2.15.90-6.fc6
+- Make the battstat applet poll less often (204858)
+
* Mon Aug 28 2006 Matthias Clasen <mclasen at redhat.com> - 1:2.15.90-5.fc6
- Make cpufreq-selector use the config-utils pam policy
More information about the fedora-cvs-commits
mailing list