From: | "Pacho Ramos (pacho)" <pacho@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in gnome-extra/gnome-power-manager/files: gnome-power-manager-2.32.0-duplicated-battery.patch |
Date: | Tue, 31 Jan 2012 08:36:24 |
Message-Id: | 20120131083615.01FCB2004C@flycatcher.gentoo.org |
1 | pacho 12/01/31 08:36:14 |
2 | |
3 | Added: gnome-power-manager-2.32.0-duplicated-battery.patch |
4 | Log: |
5 | Apply ubuntu patch to fix duplicated batteries (bug #385529 by Charles G Waldman and Jacek) as I neither suffer any regression with kernel 3.0.x. Drop old. |
6 | |
7 | (Portage version: 2.1.10.44/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 gnome-extra/gnome-power-manager/files/gnome-power-manager-2.32.0-duplicated-battery.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-power-manager/files/gnome-power-manager-2.32.0-duplicated-battery.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnome-extra/gnome-power-manager/files/gnome-power-manager-2.32.0-duplicated-battery.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gnome-power-manager-2.32.0-duplicated-battery.patch |
16 | =================================================================== |
17 | Description: Don't add hot-added battery to device list, because libupower-glib |
18 | already does that (LP: #616443) |
19 | Author: Maxim Levitsky <maximlevitsky@×××××.com> |
20 | Bug-Ubuntu: https://launchpad.net/bugs/616443 |
21 | Forwarded: no |
22 | Last-Update: <2011-06-13> |
23 | |
24 | --- gnome-power-manager-2.32.0.orig/src/gpm-engine.c |
25 | +++ gnome-power-manager-2.32.0/src/gpm-engine.c |
26 | @@ -886,10 +886,7 @@ out: |
27 | static void |
28 | gpm_engine_device_added_cb (UpClient *client, UpDevice *device, GpmEngine *engine) |
29 | { |
30 | - /* add to list */ |
31 | - g_ptr_array_add (engine->priv->array, g_object_ref (device)); |
32 | gpm_engine_check_recall (engine, device); |
33 | - |
34 | gpm_engine_recalculate_state (engine); |
35 | } |