gnome-power-manager r3279 - in trunk: . data/icons/16x16/status data/icons/22x22/status data/icons/24x24/status data/icons/32x32/status data/icons/48x48/status data/icons/scalable/status src



Author: rhughes
Date: Mon Feb 16 18:26:27 2009
New Revision: 3279
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3279&view=rev

Log:
2009-02-16  Richard Hughes  <richard hughsie com>

* data/icons/16x16/status/Makefile.am:
* data/icons/22x22/status/Makefile.am:
* data/icons/24x24/status/Makefile.am:
* data/icons/32x32/status/Makefile.am:
* data/icons/48x48/status/Makefile.am:
* data/icons/scalable/status/Makefile.am:
* data/icons/scalable/status/gpm-battery-charged.svg:
* src/gpm-devicekit.c: (gpm_devicekit_get_object_icon):
Add gpm-battery-charged to fix up a regression pointed out by DavidZ.


Added:
   trunk/data/icons/16x16/status/gpm-battery-charged.png   (contents, props changed)
   trunk/data/icons/22x22/status/gpm-battery-charged.png   (contents, props changed)
   trunk/data/icons/24x24/status/gpm-battery-charged.png   (contents, props changed)
   trunk/data/icons/32x32/status/gpm-battery-charged.png
   trunk/data/icons/48x48/status/gpm-battery-charged.png   (contents, props changed)
   trunk/data/icons/scalable/status/gpm-battery-charged.svg
Removed:
   trunk/data/icons/32x32/status/gpm-primary-000-charging.png
   trunk/data/icons/32x32/status/gpm-primary-000.png
   trunk/data/icons/32x32/status/gpm-primary-020-charging.png
   trunk/data/icons/32x32/status/gpm-primary-020.png
   trunk/data/icons/32x32/status/gpm-primary-040-charging.png
   trunk/data/icons/32x32/status/gpm-primary-040.png
   trunk/data/icons/32x32/status/gpm-primary-060.png
   trunk/data/icons/32x32/status/gpm-primary-080-charging.png
   trunk/data/icons/32x32/status/gpm-primary-080.png
   trunk/data/icons/32x32/status/gpm-primary-100-charging.png
   trunk/data/icons/32x32/status/gpm-primary-100.png
   trunk/data/icons/32x32/status/gpm-primary-missing.png
Modified:
   trunk/ChangeLog
   trunk/data/icons/16x16/status/Makefile.am
   trunk/data/icons/22x22/status/Makefile.am
   trunk/data/icons/24x24/status/Makefile.am
   trunk/data/icons/32x32/status/Makefile.am
   trunk/data/icons/48x48/status/Makefile.am
   trunk/data/icons/scalable/status/Makefile.am
   trunk/src/gpm-devicekit.c

Modified: trunk/data/icons/16x16/status/Makefile.am
==============================================================================
--- trunk/data/icons/16x16/status/Makefile.am	(original)
+++ trunk/data/icons/16x16/status/Makefile.am	Mon Feb 16 18:26:27 2009
@@ -46,6 +46,7 @@
 	gpm-battery-080-charging.png	\
 	gpm-battery-100-charging.png	\
 	gpm-battery-missing.png		\
+	gpm-battery-charged.png		\
 	gpm-ups-000.png			\
 	gpm-ups-020.png			\
 	gpm-ups-040.png			\

Added: trunk/data/icons/16x16/status/gpm-battery-charged.png
==============================================================================
Binary file. No diff available.

Modified: trunk/data/icons/22x22/status/Makefile.am
==============================================================================
--- trunk/data/icons/22x22/status/Makefile.am	(original)
+++ trunk/data/icons/22x22/status/Makefile.am	Mon Feb 16 18:26:27 2009
@@ -46,6 +46,7 @@
 	gpm-battery-080-charging.png	\
 	gpm-battery-100-charging.png	\
 	gpm-battery-missing.png		\
+	gpm-battery-charged.png		\
 	gpm-ups-000.png			\
 	gpm-ups-020.png			\
 	gpm-ups-040.png			\

Added: trunk/data/icons/22x22/status/gpm-battery-charged.png
==============================================================================
Binary file. No diff available.

Modified: trunk/data/icons/24x24/status/Makefile.am
==============================================================================
--- trunk/data/icons/24x24/status/Makefile.am	(original)
+++ trunk/data/icons/24x24/status/Makefile.am	Mon Feb 16 18:26:27 2009
@@ -46,6 +46,7 @@
 	gpm-battery-080-charging.png	\
 	gpm-battery-100-charging.png	\
 	gpm-battery-missing.png		\
+	gpm-battery-charged.png		\
 	gpm-ups-000.png			\
 	gpm-ups-020.png			\
 	gpm-ups-040.png			\

Added: trunk/data/icons/24x24/status/gpm-battery-charged.png
==============================================================================
Binary file. No diff available.

Modified: trunk/data/icons/32x32/status/Makefile.am
==============================================================================
--- trunk/data/icons/32x32/status/Makefile.am	(original)
+++ trunk/data/icons/32x32/status/Makefile.am	Mon Feb 16 18:26:27 2009
@@ -46,6 +46,7 @@
 	gpm-battery-080-charging.png	\
 	gpm-battery-100-charging.png	\
 	gpm-battery-missing.png		\
+	gpm-battery-charged.png		\
 	gpm-ups-000.png			\
 	gpm-ups-020.png			\
 	gpm-ups-040.png			\

Added: trunk/data/icons/32x32/status/gpm-battery-charged.png
==============================================================================
Binary files (empty file) and trunk/data/icons/32x32/status/gpm-battery-charged.png	Mon Feb 16 18:26:27 2009 differ

Modified: trunk/data/icons/48x48/status/Makefile.am
==============================================================================
--- trunk/data/icons/48x48/status/Makefile.am	(original)
+++ trunk/data/icons/48x48/status/Makefile.am	Mon Feb 16 18:26:27 2009
@@ -47,6 +47,7 @@
 	gpm-battery-080-charging.png	\
 	gpm-battery-100-charging.png	\
 	gpm-battery-missing.png		\
+	gpm-battery-charged.png		\
 	gpm-ups-000.png			\
 	gpm-ups-020.png			\
 	gpm-ups-040.png			\

Added: trunk/data/icons/48x48/status/gpm-battery-charged.png
==============================================================================
Binary file. No diff available.

Modified: trunk/data/icons/scalable/status/Makefile.am
==============================================================================
--- trunk/data/icons/scalable/status/Makefile.am	(original)
+++ trunk/data/icons/scalable/status/Makefile.am	Mon Feb 16 18:26:27 2009
@@ -38,6 +38,7 @@
 	gpm-battery-080-charging.svg	\
 	gpm-battery-100-charging.svg	\
 	gpm-battery-missing.svg		\
+	gpm-battery-charged.svg		\
 	gpm-ups-000.svg			\
 	gpm-ups-020.svg			\
 	gpm-ups-040.svg			\

Added: trunk/data/icons/scalable/status/gpm-battery-charged.svg
==============================================================================
--- (empty file)
+++ trunk/data/icons/scalable/status/gpm-battery-charged.svg	Mon Feb 16 18:26:27 2009
@@ -0,0 +1,673 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   version="1.0"
+   width="48"
+   height="48"
+   id="svg1328"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   sodipodi:docname="gpm-battery-charged.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape">
+  <metadata
+     id="metadata101">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <sodipodi:namedview
+     inkscape:window-height="682"
+     inkscape:window-width="641"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     guidetolerance="10.0"
+     gridtolerance="10.0"
+     objecttolerance="10.0"
+     borderopacity="1.0"
+     bordercolor="#666666"
+     pagecolor="#ffffff"
+     id="base"
+     showgrid="false"
+     inkscape:zoom="9.5833333"
+     inkscape:cx="24"
+     inkscape:cy="24"
+     inkscape:window-x="0"
+     inkscape:window-y="47"
+     inkscape:current-layer="svg1328" />
+  <defs
+     id="defs3">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 24 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="48 : 24 : 1"
+       inkscape:persp3d-origin="24 : 16 : 1"
+       id="perspective103" />
+    <linearGradient
+       id="linearGradient3289">
+      <stop
+         style="stop-color:#000000;stop-opacity:1"
+         offset="0"
+         id="stop3291" />
+      <stop
+         style="stop-color:#000000;stop-opacity:0"
+         offset="1"
+         id="stop3293" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3271">
+      <stop
+         style="stop-color:#eeeeec;stop-opacity:1"
+         offset="0"
+         id="stop3273" />
+      <stop
+         style="stop-color:#d3d3ce;stop-opacity:1"
+         offset="1"
+         id="stop3275" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3309">
+      <stop
+         style="stop-color:#e5e6e3;stop-opacity:1"
+         offset="0"
+         id="stop3311" />
+      <stop
+         style="stop-color:#d1d3cf;stop-opacity:1"
+         offset="0.5"
+         id="stop3317" />
+      <stop
+         style="stop-color:#767c6f;stop-opacity:1"
+         offset="1"
+         id="stop3313" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3323">
+      <stop
+         style="stop-color:#000000;stop-opacity:1"
+         offset="0"
+         id="stop3325" />
+      <stop
+         style="stop-color:#000000;stop-opacity:0"
+         offset="1"
+         id="stop3327" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3341">
+      <stop
+         style="stop-color:#b6b6b6;stop-opacity:1"
+         offset="0"
+         id="stop3343" />
+      <stop
+         style="stop-color:#b6b6b6;stop-opacity:0"
+         offset="1"
+         id="stop3345" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3353">
+      <stop
+         style="stop-color:#969696;stop-opacity:1"
+         offset="0"
+         id="stop3355" />
+      <stop
+         style="stop-color:#b6b6b6;stop-opacity:0"
+         offset="1"
+         id="stop3357" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3260">
+      <stop
+         style="stop-color:#3465a4;stop-opacity:1"
+         offset="0"
+         id="stop3262" />
+      <stop
+         style="stop-color:#8fb1dc;stop-opacity:1"
+         offset="1"
+         id="stop3264" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3815">
+      <stop
+         style="stop-color:#204a87;stop-opacity:1"
+         offset="0"
+         id="stop3817" />
+      <stop
+         style="stop-color:#98b8e7;stop-opacity:1"
+         offset="1"
+         id="stop3819" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3805">
+      <stop
+         style="stop-color:#284e7f;stop-opacity:1"
+         offset="0"
+         id="stop3807" />
+      <stop
+         style="stop-color:#6694cf;stop-opacity:1"
+         offset="0.5"
+         id="stop3813" />
+      <stop
+         style="stop-color:#234570;stop-opacity:1"
+         offset="1"
+         id="stop3809" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3247">
+      <stop
+         style="stop-color:#f0f0f0;stop-opacity:1"
+         offset="0"
+         id="stop3249" />
+      <stop
+         style="stop-color:#f0f0f0;stop-opacity:0"
+         offset="1"
+         id="stop3251" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient3233">
+      <stop
+         style="stop-color:#eeeeec;stop-opacity:1"
+         offset="0"
+         id="stop3235" />
+      <stop
+         style="stop-color:#a3a398;stop-opacity:1"
+         offset="1"
+         id="stop3237" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient6924">
+      <stop
+         style="stop-color:#ffffff;stop-opacity:1"
+         offset="0"
+         id="stop6926" />
+      <stop
+         style="stop-color:#ffffff;stop-opacity:0"
+         offset="1"
+         id="stop6928" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4176">
+      <stop
+         style="stop-color:#ffffff;stop-opacity:1"
+         offset="0"
+         id="stop4178" />
+      <stop
+         style="stop-color:#ffffff;stop-opacity:0"
+         offset="1"
+         id="stop4180" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4134">
+      <stop
+         style="stop-color:#d6d7d5;stop-opacity:1"
+         offset="0"
+         id="stop4136" />
+      <stop
+         style="stop-color:#d1d2d0;stop-opacity:1"
+         offset="0.25"
+         id="stop4148" />
+      <stop
+         style="stop-color:#a5a6a3;stop-opacity:1"
+         offset="0.5"
+         id="stop4142" />
+      <stop
+         style="stop-color:#dddedc;stop-opacity:1"
+         offset="1"
+         id="stop4138" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4126">
+      <stop
+         style="stop-color:#000000;stop-opacity:1"
+         offset="0"
+         id="stop4128" />
+      <stop
+         style="stop-color:#000000;stop-opacity:0"
+         offset="1"
+         id="stop4130" />
+    </linearGradient>
+    <radialGradient
+       cx="23.857143"
+       cy="40"
+       r="17.142857"
+       fx="23.857143"
+       fy="40"
+       id="radialGradient4132"
+       xlink:href="#linearGradient4126"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,0.5,0,20)" />
+    <linearGradient
+       x1="9.3030529"
+       y1="26.71875"
+       x2="38.826412"
+       y2="26.71875"
+       id="linearGradient4140"
+       xlink:href="#linearGradient4134"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.010922,0,0,0.991346,-7.327667,-4.826537)" />
+    <linearGradient
+       x1="17.160095"
+       y1="14.004482"
+       x2="37.969398"
+       y2="56.575912"
+       id="linearGradient4182"
+       xlink:href="#linearGradient4176"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.010922,0,0,0.992756,-7.327667,-4.832743)" />
+    <linearGradient
+       x1="16.07143"
+       y1="19.5"
+       x2="16.035715"
+       y2="31.75"
+       id="linearGradient6930"
+       xlink:href="#linearGradient6924"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.010922,0,0,1,-7.327668,-2.32786)" />
+    <radialGradient
+       cx="23.857143"
+       cy="40"
+       r="17.142857"
+       fx="23.857143"
+       fy="40"
+       id="radialGradient6946"
+       xlink:href="#linearGradient4126"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,0.5,0,20)" />
+    <linearGradient
+       x1="24"
+       y1="17.245949"
+       x2="23.433737"
+       y2="8.0476589"
+       id="linearGradient3239"
+       xlink:href="#linearGradient3233"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       x1="34.244171"
+       y1="17.695425"
+       x2="34.244171"
+       y2="29.91827"
+       id="linearGradient3253"
+       xlink:href="#linearGradient3247"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.010922,0,0,1,-7.327668,-3.185003)" />
+    <linearGradient
+       x1="24"
+       y1="17.245949"
+       x2="23.433737"
+       y2="8.0476589"
+       id="linearGradient3255"
+       xlink:href="#linearGradient3233"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       x1="11.003058"
+       y1="32.489445"
+       x2="32.396713"
+       y2="32.489445"
+       id="linearGradient3811"
+       xlink:href="#linearGradient3805"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.010922,0,0,1,-7.327666,-3.185003)" />
+    <linearGradient
+       x1="25.698481"
+       y1="11.170371"
+       x2="25.573168"
+       y2="20.118456"
+       id="linearGradient3821"
+       xlink:href="#linearGradient3815"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       x1="21.486856"
+       y1="25.114395"
+       x2="21.756248"
+       y2="5.5616603"
+       id="linearGradient3266"
+       xlink:href="#linearGradient3260"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       x1="-27.27899"
+       y1="-5.7469382"
+       x2="-28.46833"
+       y2="-11.99264"
+       id="linearGradient3797"
+       xlink:href="#linearGradient3341"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="translate(36.7012,10.5)" />
+    <radialGradient
+       cx="22.5"
+       cy="34"
+       r="23.5"
+       fx="22.5"
+       fy="34"
+       id="radialGradient3806"
+       xlink:href="#linearGradient3323"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,0.595745,0,13.74468)" />
+    <radialGradient
+       cx="77.499115"
+       cy="-9.0639915"
+       r="17.500887"
+       fx="77.499115"
+       fy="-9.0639915"
+       id="radialGradient3825"
+       xlink:href="#linearGradient3309"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.468277,0,0,1.290652,-34.29018,41.60653)" />
+    <linearGradient
+       x1="78.98452"
+       y1="12.350954"
+       x2="79.109146"
+       y2="8.7270317"
+       id="linearGradient3827"
+       xlink:href="#linearGradient3271"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.667726,0,0,0.695494,27.74038,34.63412)" />
+    <radialGradient
+       cx="69.296463"
+       cy="14.854369"
+       r="3.5355339"
+       fx="69.296463"
+       fy="14.854369"
+       id="radialGradient3829"
+       xlink:href="#linearGradient3289"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,1.575,0,-8.541261)" />
+    <radialGradient
+       cx="69.296463"
+       cy="14.854369"
+       r="3.5355339"
+       fx="69.296463"
+       fy="14.854369"
+       id="radialGradient3831"
+       xlink:href="#linearGradient3289"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,1.575,0,-8.541261)" />
+    <linearGradient
+       x1="-87.031296"
+       y1="-12.199734"
+       x2="-88.677742"
+       y2="-17.884775"
+       id="linearGradient3837"
+       xlink:href="#linearGradient3353"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="translate(106.4527,16.53554)" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3233"
+       id="linearGradient2489"
+       gradientUnits="userSpaceOnUse"
+       x1="24"
+       y1="17.245949"
+       x2="23.433737"
+       y2="8.0476589"
+       gradientTransform="matrix(0.27495,0,0,0.192106,10.33251,1.668374)" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient6924"
+       id="linearGradient2492"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.010922,0,0,1,-7.327668,-2.32786)"
+       x1="16.07143"
+       y1="19.5"
+       x2="16.035715"
+       y2="31.75" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4126"
+       id="radialGradient2496"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.367399,0,0,0.181715,7.936622,-0.568717)"
+       cx="23.857143"
+       cy="40"
+       fx="23.857143"
+       fy="40"
+       r="17.142857" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3233"
+       id="linearGradient2499"
+       gradientUnits="userSpaceOnUse"
+       x1="24"
+       y1="17.245949"
+       x2="23.433737"
+       y2="8.0476589"
+       gradientTransform="matrix(1.048621,0,0,0.964345,-8.232422,-3.540415)" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3260"
+       id="linearGradient2502"
+       gradientUnits="userSpaceOnUse"
+       x1="21.486856"
+       y1="25.114395"
+       x2="21.756248"
+       y2="5.5616603"
+       gradientTransform="matrix(0.983216,0,0,0.865862,-6.665776,-1.604813)" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3815"
+       id="linearGradient2504"
+       gradientUnits="userSpaceOnUse"
+       x1="25.698481"
+       y1="11.170371"
+       x2="25.573168"
+       y2="20.118456"
+       gradientTransform="matrix(0.983216,0,0,0.865862,-6.665776,-1.604813)" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3805"
+       id="linearGradient2507"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.010922,0,0,1,-7.327666,-3.185003)"
+       x1="11.003058"
+       y1="32.489445"
+       x2="32.396713"
+       y2="32.489445" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3247"
+       id="linearGradient2510"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.010922,0,0,1,-7.327668,-3.185003)"
+       x1="34.244171"
+       y1="17.695425"
+       x2="34.244171"
+       y2="29.91827" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4176"
+       id="linearGradient2513"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.010922,0,0,0.992756,-7.327667,-4.832743)"
+       x1="17.160095"
+       y1="14.004482"
+       x2="37.969398"
+       y2="56.575912" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4134"
+       id="linearGradient2516"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.010922,0,0,0.991346,-7.327667,-4.826537)"
+       x1="9.3030529"
+       y1="26.71875"
+       x2="38.826412"
+       y2="26.71875" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3341"
+       id="linearGradient2520"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="translate(36.7012,10.5)"
+       x1="-27.27899"
+       y1="-5.7469382"
+       x2="-28.46833"
+       y2="-11.99264" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4126"
+       id="radialGradient2523"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1.070316,0,0,0.5756295,-8.4558,8.56327)"
+       cx="23.857143"
+       cy="40"
+       fx="23.857143"
+       fy="40"
+       r="17.142857" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3323"
+       id="radialGradient2526"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0.7,0,0,0.595745,17.8,14.74468)"
+       cx="22.5"
+       cy="34"
+       fx="22.5"
+       fy="34"
+       r="23.5" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient3353"
+       id="linearGradient2529"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="translate(106.4527,16.53554)"
+       x1="-87.031296"
+       y1="-12.199734"
+       x2="-88.677742"
+       y2="-17.884775" />
+  </defs>
+  <path
+     id="path3835"
+     style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient2529);stroke-width:6;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 35.20123,24 C 33.70123,17.25 40.684722,15.592611 38.70123,10.75 C 34.282764,-0.037494208 17.45123,15.25 12.70123,14.75 C 7.95123,14.25 6.84768,-1.785534 6.84768,-1.785534" />
+  <path
+     id="path3321"
+     style="opacity:0.58241763;fill:url(#radialGradient2526);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.99999946;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 50,35 C 50,42.731986 42.635084,49 33.55,49 C 24.464916,49 17.1,42.731986 17.1,35 C 17.1,27.268014 24.464916,21 33.55,21 C 42.635084,21 50,27.268014 50,35 L 50,35 z" />
+  <path
+     id="path3366"
+     style="fill:url(#radialGradient2523);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 35.427156,31.58845 C 35.429346,37.039192 27.213902,41.458516 17.078882,41.458516 C 6.9438627,41.458516 -1.2715808,37.039192 -1.2693914,31.58845 C -1.2715808,26.137708 6.9438627,21.718384 17.078882,21.718384 C 27.213902,21.718384 35.429346,26.137708 35.427156,31.58845 L 35.427156,31.58845 z" />
+  <path
+     id="path3339"
+     style="fill:none;fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient2520);stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 35.20123,24 C 33.70123,17.25 40.684722,15.592611 38.70123,10.75 C 34.282764,-0.037494208 17.45123,15.25 12.70123,14.75 C 7.95123,14.25 6.84768,-1.785534 6.84768,-1.785534" />
+  <path
+     id="path3361"
+     style="opacity:0.52197804;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 33.829323,25.323223 C 32.41511,16.130835 42.523381,13.496137 36.480967,7.822331 C 30.34962,2.0650171 15.332069,16.672654 10.671569,14.009515 C 6.9592589,11.888195 5.7218254,-0.83972765 5.7218254,-0.83972765" />
+  <path
+     id="path3068"
+     style="fill:url(#linearGradient2516);fill-opacity:1;fill-rule:nonzero;stroke:#767973;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 16.871279,4.0026374 C 8.9260107,4.0026374 2.4656405,6.7808855 2.4656395,10.198551 C 2.4656395,10.443795 2.4656395,32.868017 2.4656395,33.123427 C 2.4656395,36.541093 8.9260096,39.31934 16.871279,39.31934 C 24.816547,39.31934 31.534163,36.541092 31.534161,33.123427 C 31.534161,32.921132 31.534161,10.400846 31.534161,10.198551 C 31.534161,6.7808845 24.816546,4.0026374 16.871279,4.0026374 z" />
+  <path
+     id="path4174"
+     style="opacity:0.5443038;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient2513);stroke-width:1.00000012;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 16.879996,4.7826643 C 9.4722033,4.7826643 3.4488595,7.376656 3.4488585,10.567657 C 3.4488585,10.796637 3.4488585,32.295174 3.4488585,32.533645 C 3.4488585,35.724648 9.4722023,38.318638 16.879996,38.318638 C 24.287788,38.318638 30.550974,35.724647 30.550972,32.533645 C 30.550972,32.344768 30.550972,10.756537 30.550972,10.567657 C 30.550972,7.376655 24.287787,4.7826643 16.879996,4.7826643 z" />
+  <path
+     id="path3245"
+     style="fill:url(#linearGradient2510);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.99999946;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 28.924424,8.500013 C 27.803195,7.514903 26.855131,7.214975 25.860868,6.7322461 L 26.167222,25.420069 L 28.924424,28.652556 L 28.924424,8.500013 z" />
+  <path
+     id="path3275"
+     style="opacity:0.79120878;fill:url(#linearGradient2507);fill-opacity:1;fill-rule:nonzero;stroke:#204a87;stroke-width:0.99621511;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 16.295574,6.336243 C 9.6193322,6.470969 4.2991157,8.676181 4.2991157,11.364456 C 4.2991157,11.683147 4.2991157,31.929837 4.2991157,32.24636 C 4.2991157,35.021353 9.9395939,37.27457 16.917612,37.274572 C 23.895631,37.274572 29.565729,35.021353 29.56573,32.24636 C 29.56573,31.929837 29.56573,11.683147 29.56573,11.364456 C 29.56573,8.589462 23.895631,6.336244 16.917612,6.336243 C 16.699549,6.336243 16.510936,6.331897 16.295574,6.336243 z" />
+  <path
+     id="path3277"
+     style="fill:url(#linearGradient2502);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient2504);stroke-width:0.99999952;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 29.572756,10.579102 C 29.572756,13.209215 23.913032,15.341343 16.931408,15.341343 C 9.9497839,15.341343 4.2900603,13.209215 4.2900603,10.579102 C 4.2900603,7.9489888 9.9497839,5.8168607 16.931408,5.8168607 C 23.913032,5.8168607 29.572756,7.9489888 29.572756,10.579102 L 29.572756,10.579102 z" />
+  <path
+     id="path3364"
+     style="opacity:0.467033;fill:#f0f0f0;fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient2499);stroke-width:0.9999997;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 30.416751,10.029296 C 30.416751,12.958558 24.380534,15.333194 16.934482,15.333194 C 9.4884298,15.333194 3.4522129,12.958558 3.4522129,10.029296 C 3.4522129,7.1000347 9.4884298,4.7253986 16.934482,4.7253986 C 24.380534,4.7253986 30.416751,7.1000347 30.416751,10.029296 L 30.416751,10.029296 z" />
+  <path
+     id="path6944"
+     style="opacity:0.30769234;fill:url(#radialGradient2496);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 22.999981,6.699883 C 23.000733,8.4205758 20.180682,9.8156702 16.701712,9.8156702 C 13.222744,9.8156702 10.402693,8.4205758 10.403444,6.699883 C 10.402693,4.9791902 13.222744,3.5840958 16.701712,3.5840958 C 20.180682,3.5840958 23.000733,4.9791902 22.999981,6.699883 L 22.999981,6.699883 z" />
+  <path
+     id="path3362"
+     style="fill:#9d9e9b;fill-opacity:1;fill-rule:nonzero;stroke:#7d7f7a;stroke-width:0.99999988;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 17.025026,2.5 C 15.000357,2.5 12.343159,3.214153 12.343159,4.092669 C 12.343159,4.155709 12.343159,6.656674 12.343159,6.722328 C 12.343159,7.600844 15.000357,8.314997 17.025026,8.314997 C 19.049695,8.314997 21.483612,7.600844 21.483611,6.722328 C 21.483611,6.670328 21.483611,4.144669 21.483611,4.092669 C 21.483611,3.214152 19.049695,2.5 17.025026,2.5 z" />
+  <path
+     id="path6922"
+     style="opacity:0.58241763;fill:url(#linearGradient2492);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 6.608618,14.743568 L 6.9696608,31.529283 L 11.591021,32.814997 L 11.446603,16.100711 C 11.446603,16.100711 13.406625,16.012323 16.800435,15.798037 C 10.232095,15.748054 5.9416833,14.219867 3.5758513,11.957854 C 5.008226,14.05003 6.608618,14.743568 6.608618,14.743568 z" />
+  <path
+     id="path6940"
+     style="fill:#d3d7cf;fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient2489);stroke-width:1.00000083;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+     d="M 20.466381,4.3715797 C 20.466381,4.9551144 18.883676,5.4281627 16.93131,5.4281627 C 14.978944,5.4281627 13.396239,4.9551144 13.396239,4.3715797 C 13.396239,3.7880451 14.978944,3.3149967 16.93131,3.3149967 C 18.883676,3.3149967 20.466381,3.7880451 20.466381,4.3715797 L 20.466381,4.3715797 z" />
+  <g
+     id="g3814"
+     transform="translate(-45.004,-5.936464)">
+    <path
+       id="rect2393"
+       style="fill:url(#radialGradient3825);fill-opacity:1;fill-rule:nonzero;stroke:#848781;stroke-width:0.99999952;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+       d="M 79.191286,28.437593 C 72.690514,28.59762 67.504624,33.772305 67.504624,40.1711 L 67.504624,40.451497 C 67.502838,40.460078 67.505539,40.485767 67.504624,40.494634 C 67.504392,40.499132 67.504624,40.511648 67.504624,40.516203 L 67.504624,49.186919 C 67.500718,49.355538 67.662376,49.5117 67.796572,49.504341 C 67.796572,49.504341 90.655668,49.540472 90.655668,49.540472 C 91.053415,49.518375 91.506406,49.303728 91.517454,48.839689 C 91.517454,48.839689 91.495357,40.516203 91.495357,40.516203 C 91.495357,40.511648 91.495588,40.499132 91.495357,40.494634 C 91.494442,40.485767 91.497142,40.460078 91.495357,40.451497 L 91.495357,40.1711 C 91.495357,33.670737 86.145424,28.437593 79.499991,28.437593 C 79.396156,28.437593 79.294473,28.435053 79.191286,28.437593 z" />
+    <rect
+       id="rect2391"
+       style="fill:url(#linearGradient3827);fill-opacity:1;fill-rule:nonzero;stroke:#888a85;stroke-width:0.99999958;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+       y="40.527031"
+       x="69.482597"
+       ry="0.38128221"
+       rx="0.38128209"
+       height="6.9925261"
+       width="20.013201" />
+    <path
+       id="path3297"
+       style="opacity:0.48901098;fill:url(#radialGradient3829);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.99999946;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+       transform="matrix(0.7,0,0,0.7,37.13251,35.09136)"
+       d="M 72.831997,14.854369 C 72.831997,17.929748 71.249085,20.422835 69.296463,20.422835 C 67.343841,20.422835 65.760929,17.929748 65.760929,14.854369 C 65.760929,11.77899 67.343841,9.2859031 69.296463,9.2859031 C 71.249085,9.2859031 72.831997,11.77899 72.831997,14.854369 z" />
+    <path
+       id="path3287"
+       style="opacity:0.48901098;fill:url(#radialGradient3831);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.99999946;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+       transform="matrix(0.7,0,0,0.7,25.15124,35.09136)"
+       d="M 72.831997,14.854369 C 72.831997,17.929748 71.249085,20.422835 69.296463,20.422835 C 67.343841,20.422835 65.760929,17.929748 65.760929,14.854369 C 65.760929,11.77899 67.343841,9.2859031 69.296463,9.2859031 C 71.249085,9.2859031 72.831997,11.77899 72.831997,14.854369 z" />
+    <path
+       id="path3319"
+       style="opacity:0.58241763;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#ffffff;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+       d="M 79.311448,29.482533 C 73.404864,29.626641 68.560395,34.286528 68.560395,40.048745 C 68.560395,40.048745 68.516201,48.487142 68.516201,48.491244 C 68.516201,48.491244 90.512993,48.496419 90.512993,48.496419 L 90.490896,40.048745 C 90.490896,34.195064 85.62996,29.482533 79.591936,29.482533 C 79.497592,29.482533 79.405205,29.480246 79.311448,29.482533 z" />
+    <rect
+       id="rect3283"
+       style="fill:#babdb6;fill-opacity:1;fill-rule:nonzero;stroke:#888a85;stroke-width:0.9999994;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+       y="42.462387"
+       x="84.47113"
+       ry="0.38128218"
+       rx="0.38128215"
+       height="9.9702358"
+       width="2.0417981" />
+    <rect
+       id="rect3808"
+       style="opacity:0.68131869;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+       y="46"
+       x="85"
+       height="6"
+       width="1" />
+    <rect
+       id="rect3810"
+       style="fill:#babdb6;fill-opacity:1;fill-rule:nonzero;stroke:#888a85;stroke-width:0.9999994;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+       y="42.462387"
+       x="72.5"
+       ry="0.38128218"
+       rx="0.38128215"
+       height="9.9702358"
+       width="2.0417981" />
+    <rect
+       id="rect3812"
+       style="opacity:0.68131869;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
+       y="46"
+       x="73.02887"
+       height="6"
+       width="1" />
+  </g>
+  <g
+     id="layer2" />
+</svg>

Modified: trunk/src/gpm-devicekit.c
==============================================================================
--- trunk/src/gpm-devicekit.c	(original)
+++ trunk/src/gpm-devicekit.c	Mon Feb 16 18:26:27 2009
@@ -85,8 +85,7 @@
 		filename = g_strdup ("gpm-ac-adapter");
 	} else if (obj->type == DKP_DEVICE_TYPE_MONITOR) {
 		filename = g_strdup ("gpm-monitor");
-	} else if (obj->type == DKP_DEVICE_TYPE_BATTERY ||
-		   obj->type == DKP_DEVICE_TYPE_UPS) {
+	} else if (obj->type == DKP_DEVICE_TYPE_UPS) {
 		if (!obj->is_present) {
 			/* battery missing */
 			filename = g_strdup_printf ("gpm-%s-missing", prefix);
@@ -102,6 +101,22 @@
 			index_str = gpm_devicekit_get_object_icon_index (obj);
 			filename = g_strdup_printf ("gpm-%s-%s", prefix, index_str);
 		}
+	} else if (obj->type == DKP_DEVICE_TYPE_BATTERY) {
+		if (!obj->is_present) {
+			/* battery missing */
+			filename = g_strdup_printf ("gpm-%s-missing", prefix);
+
+		} else if (obj->state == DKP_DEVICE_STATE_FULLY_CHARGED) {
+			filename = g_strdup_printf ("gpm-%s-charged", prefix);
+
+		} else if (obj->state == DKP_DEVICE_STATE_CHARGING) {
+			index_str = gpm_devicekit_get_object_icon_index (obj);
+			filename = g_strdup_printf ("gpm-%s-%s-charging", prefix, index_str);
+
+		} else if (obj->state == DKP_DEVICE_STATE_DISCHARGING) {
+			index_str = gpm_devicekit_get_object_icon_index (obj);
+			filename = g_strdup_printf ("gpm-%s-%s", prefix, index_str);
+		}
 	} else if (obj->type == DKP_DEVICE_TYPE_MOUSE ||
 		   obj->type == DKP_DEVICE_TYPE_KEYBOARD ||
 		   obj->type == DKP_DEVICE_TYPE_PHONE) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]