rpms/gnome-power-manager/devel gpm-fix-percentage-types.patch, NONE, 1.1 gnome-power-manager.spec, 1.121, 1.122

Richard Hughes (rhughes) fedora-extras-commits at redhat.com
Thu Aug 14 19:37:20 UTC 2008


Author: rhughes

Update of /cvs/pkgs/rpms/gnome-power-manager/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11310

Modified Files:
	gnome-power-manager.spec 
Added Files:
	gpm-fix-percentage-types.patch 
Log Message:
* Wed Aug 14 2008 Richard Hughes  <rhughes at redhat.com> - 2.23.6-2
- Apply a fix from upstream to fix crashing on percentage change.


gpm-fix-percentage-types.patch:

--- NEW FILE gpm-fix-percentage-types.patch ---
Index: src/gpm-cell-array.c
===================================================================
--- src/gpm-cell-array.c	(revision 2881)
+++ src/gpm-cell-array.c	(working copy)
@@ -592,10 +592,10 @@
  * gpm_cell_percent_changed_cb:
  */
 static void
-gpm_cell_percent_changed_cb (GpmCell *cell, guint percent, GpmCellArray *cell_array)
+gpm_cell_percent_changed_cb (GpmCell *cell, gfloat percent, GpmCellArray *cell_array)
 {
 	GpmCellUnit *unit;
-	guint old_percent;
+	gfloat old_percent;
 
 	g_return_if_fail (GPM_IS_CELL_ARRAY (cell_array));
 


Index: gnome-power-manager.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-power-manager/devel/gnome-power-manager.spec,v
retrieving revision 1.121
retrieving revision 1.122
diff -u -r1.121 -r1.122
--- gnome-power-manager.spec	6 Aug 2008 12:18:48 -0000	1.121
+++ gnome-power-manager.spec	14 Aug 2008 19:36:50 -0000	1.122
@@ -5,12 +5,16 @@
 Summary: GNOME Power Manager
 Name: gnome-power-manager
 Version: 2.23.6
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: GPLv2+ and GFDL
 Group: Applications/System
 Source: http://download.gnome.org/sources/gnome-power-manager/2.23/gnome-power-manager-%{version}.tar.gz
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 URL: http://www.gnome.org/projects/gnome-power-manager/
+
+# upstream
+Patch0:    gpm-fix-percentage-types.patch
+
 BuildRequires: libgnomeui-devel
 BuildRequires: libglade2-devel
 BuildRequires: libwnck-devel
@@ -48,6 +52,7 @@
 
 %prep
 %setup -q
+%patch0 -p0
 
 %build
 %configure \
@@ -127,6 +132,9 @@
 %{_datadir}/gnome-2.0/ui/GNOME_InhibitApplet.xml
 
 %changelog
+* Wed Aug 14 2008 Richard Hughes  <rhughes at redhat.com> - 2.23.6-2
+- Apply a fix from upstream to fix crashing on percentage change.
+
 * Wed Aug 06 2008 Richard Hughes  <rhughes at redhat.com> - 2.23.6-1
 - Update to 2.23.6, which should the Eee and some Policykit stuff.
 




More information about the fedora-extras-commits mailing list