rpms/polkit-gnome/F-12 whitespace-leak.patch, NONE, 1.1 polkit-gnome.spec, 1.16, 1.17

Matthias Clasen mclasen at fedoraproject.org
Wed Oct 7 18:16:11 UTC 2009


Author: mclasen

Update of /cvs/pkgs/rpms/polkit-gnome/F-12
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17361

Modified Files:
	polkit-gnome.spec 
Added Files:
	whitespace-leak.patch 
Log Message:
fix a whitespace leak


whitespace-leak.patch:
 main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE whitespace-leak.patch ---
>From f79b5a04a705706cce301b92556a4f7e8ad932c8 Mon Sep 17 00:00:00 2001
From: Chris Coulson <chrisccoulson at googlemail.com>
Date: Sun, 4 Oct 2009 20:50:25 +0100
Subject: [PATCH] Set status icon invisible before unref'ing it

Set the status icon invisible before unref'ing it. This avoids
leaving whitespace in the notification area, which grows in size
each time the icon is displayed/hidden
---
 src/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c
index 5970670..a8970df 100644
--- a/src/main.c
+++ b/src/main.c
@@ -141,6 +141,7 @@ update_temporary_authorization_icon_real (void)
       /* hide icon */
       if (status_icon != NULL)
         {
+          gtk_status_icon_set_visible (status_icon, FALSE);
           g_object_unref (status_icon);
           status_icon = NULL;
         }
-- 
1.6.3.3



Index: polkit-gnome.spec
===================================================================
RCS file: /cvs/pkgs/rpms/polkit-gnome/F-12/polkit-gnome.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- polkit-gnome.spec	14 Sep 2009 20:11:21 -0000	1.16
+++ polkit-gnome.spec	7 Oct 2009 18:16:11 -0000	1.17
@@ -1,11 +1,15 @@
 Summary: PolicyKit integration for the GNOME desktop
 Name: polkit-gnome
 Version: 0.95
-Release: 0.git20090913.5%{?dist}
+Release: 0.git20090913.6%{?dist}
 License: LGPLv2+
 URL: http://www.freedesktop.org/wiki/Software/PolicyKit
 Group: Applications/System
 Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.git20090913.tar.bz2
+
+# https://bugzilla.gnome.org/show_bug.cgi?id=597346
+Patch0: whitespace-leak.patch
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: gtk2-devel
 BuildRequires: polkit-devel >= 0.95
@@ -54,6 +58,7 @@ Development documentation for polkit-gno
 
 %prep
 %setup -q
+%patch0 -p1 -b .whitespace-leak
 
 %build
 %configure --enable-gtk-doc
@@ -97,6 +102,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Oct  7 2009 Matthias Clasen <mclasen at redhat.com> - 0.95.0.git20090913.6
+- Prevent the statusicon from eating whitespace
+
 * Mon Sep 14 2009 David Zeuthen <davidz at redhat.com> - 0.95-0.git20090913.5
 - add Provides: PolicyKit-authentication-agent to satify what PolicyKit-gnome
   also provided




More information about the fedora-extras-commits mailing list