Add patch to fix charging status icon fall back
This commit is contained in:
parent
54828f4004
commit
fd91600c69
@ -1,6 +1,6 @@
|
||||
Name: gnome-settings-daemon
|
||||
Version: 3.4.2
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: The daemon sharing settings from GNOME to GTK+/KDE applications
|
||||
|
||||
Group: System Environment/Daemons
|
||||
@ -20,6 +20,7 @@ Patch1: gsd-wacom.patch
|
||||
# Fixing this properly involves some new functionality in systemd,
|
||||
# which won't be showing up until F18.
|
||||
Patch2: gsd-auto-update-type-is-none.patch
|
||||
Patch3: gsd-fallback-icon.patch
|
||||
|
||||
Requires: control-center-filesystem
|
||||
|
||||
@ -74,6 +75,7 @@ developing applications that use %{name}.
|
||||
%patch0 -p1 -b .calc
|
||||
%patch1 -p1 -b .wacom
|
||||
%patch2 -p1 -b .update-none
|
||||
%patch3 -p1 -b .fallback-icon
|
||||
|
||||
autoreconf -i -f
|
||||
|
||||
@ -223,6 +225,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
|
||||
%{_datadir}/gnome-settings-daemon-3.0/input-device-example.sh
|
||||
|
||||
%changelog
|
||||
* Thu Jun 7 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 3.4.2-2
|
||||
- Add patch to fix charging status icon fall back
|
||||
|
||||
* Tue May 15 2012 Richard Hughes <hughsient@gmail.com> - 3.4.2-1
|
||||
- Update to 3.4.2
|
||||
|
||||
|
35
gsd-fallback-icon.patch
Normal file
35
gsd-fallback-icon.patch
Normal file
@ -0,0 +1,35 @@
|
||||
From fa834c27d783c290856d9d24fbc4a29acb8e4456 Mon Sep 17 00:00:00 2001
|
||||
From: Daniel Drake <dsd@laptop.org>
|
||||
Date: Fri, 01 Jun 2012 21:45:04 +0000
|
||||
Subject: power: update fallback status icon on icon state change
|
||||
|
||||
When the icon was being changed from one icon to another, the fallback
|
||||
icon was not being updated.
|
||||
|
||||
This meant that unplugging or re-plugging AC power on OLPC laptops
|
||||
was not updating the icon (even though the tooltip updated just fine).
|
||||
|
||||
Add a missing call to update the GtkStatusIcon when the internal GIcon
|
||||
changes.
|
||||
|
||||
Fixes http://dev.laptop.org/ticket/11878
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=677313
|
||||
---
|
||||
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
|
||||
index 1d60723..abec33f 100644
|
||||
--- a/plugins/power/gsd-power-manager.c
|
||||
+++ b/plugins/power/gsd-power-manager.c
|
||||
@@ -711,6 +711,10 @@ engine_recalculate_state_icon (GsdPowerManager *manager)
|
||||
|
||||
/* icon before, now different */
|
||||
if (!g_icon_equal (manager->priv->previous_icon, icon)) {
|
||||
+
|
||||
+ /* set fallback icon */
|
||||
+ gtk_status_icon_set_from_gicon (manager->priv->status_icon, icon);
|
||||
+
|
||||
g_object_unref (manager->priv->previous_icon);
|
||||
manager->priv->previous_icon = icon;
|
||||
return TRUE;
|
||||
--
|
||||
cgit v0.9.0.2
|
Loading…
Reference in New Issue
Block a user