Hello community,

here is the log from the commit of package xfce4-power-manager for 
openSUSE:Factory
checked in at Mon Oct 10 14:13:08 CEST 2011.



--------
--- openSUSE:Factory/xfce4-power-manager/xfce4-power-manager.changes    
2011-09-23 12:51:28.000000000 +0200
+++ 
/mounts/work_src_done/STABLE/xfce4-power-manager/xfce4-power-manager.changes    
    2011-10-10 11:04:33.000000000 +0200
@@ -1,0 +2,8 @@
+Mon Oct 10 08:54:38 UTC 2011 - [email protected]
+
+- added
+  xfce4-power-manager-1.0.10-fix-saving-brightness-levels.patch
+  which fixes the type of saved brightness levels so they can be
+  correctly loaded again
+
+-------------------------------------------------------------------

calling whatdependson for head-i586


New:
----
  xfce4-power-manager-1.0.10-fix-saving-brightness-levels.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ xfce4-power-manager.spec ++++++
--- /var/tmp/diff_new_pack.q5VtuO/_old  2011-10-10 14:13:05.000000000 +0200
+++ /var/tmp/diff_new_pack.q5VtuO/_new  2011-10-10 14:13:05.000000000 +0200
@@ -34,6 +34,8 @@
 Patch2:         xfce4-power-manager-1.0.10-support-networkmanager-0.9.patch
 # PATCH-FIX-UPSTREAM xfce4-power-manager-1.0.10-fix-broken-icon.patch 
[email protected] -- Fix broken empty battery icon in tray
 Patch3:         xfce4-power-manager-1.0.10-fix-broken-icon.patch
+# PATCH-FIX-UPSTREAM 
xfce4-power-manager-1.0.10-fix-saving-brightness-levels.patch bxo#7791 
[email protected] -- Fix the type of saved brightness levels so they can be 
correctly loaded again
+Patch4:         xfce4-power-manager-1.0.10-fix-saving-brightness-levels.patch
 BuildRequires:  fdupes
 BuildRequires:  intltool
 BuildRequires:  pkgconfig(dbus-glib-1)
@@ -75,6 +77,7 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %configure --disable-hal

++++++ xfce4-power-manager-1.0.10-fix-saving-brightness-levels.patch ++++++
--- a/settings/xfpm-settings.c  
+++ a/settings/xfpm-settings.c  
@@ -168,21 +168,21 @@ void        _cursor_changed_cb                       
(GtkTreeView *view,
 
 void brightness_level_on_ac (GtkSpinButton *w,  XfconfChannel *channel)
 {
-     gint val = (gint) gtk_spin_button_get_value (w);
+    guint val = (guint) gtk_spin_button_get_value (w);
     
-    if (!xfconf_channel_set_int (channel, PROPERTIES_PREFIX 
BRIGHTNESS_LEVEL_ON_AC, val) )
+    if (!xfconf_channel_set_uint (channel, PROPERTIES_PREFIX 
BRIGHTNESS_LEVEL_ON_AC, val) )
     {
-       g_critical ("Unable to set value %d for property %s\n", val, 
BRIGHTNESS_LEVEL_ON_AC);
+       g_critical ("Unable to set value %u for property %s\n", val, 
BRIGHTNESS_LEVEL_ON_AC);
     }
 }
 
 void brightness_level_on_battery (GtkSpinButton *w,  XfconfChannel *channel)
 {
-     gint val = (gint) gtk_spin_button_get_value (w);
+     guint val = (guint) gtk_spin_button_get_value (w);
     
-    if (!xfconf_channel_set_int (channel, PROPERTIES_PREFIX 
BRIGHTNESS_LEVEL_ON_BATTERY, val) )
+    if (!xfconf_channel_set_uint (channel, PROPERTIES_PREFIX 
BRIGHTNESS_LEVEL_ON_BATTERY, val) )
     {
-       g_critical ("Unable to set value %d for property %s\n", val, 
BRIGHTNESS_LEVEL_ON_BATTERY);
+       g_critical ("Unable to set value %u for property %s\n", val, 
BRIGHTNESS_LEVEL_ON_BATTERY);
     }
 }
 
--- a/src/xfpm-xfconf.c 
+++ a/src/xfpm-xfconf.c 
@@ -339,7 +339,7 @@ xfpm_xfconf_class_init (XfpmXfconfClass *klass)
      **/
     g_object_class_install_property (object_class,
                                      PROP_BRIGHTNESS_LEVEL_ON_AC,
-                                     g_param_spec_int  (BRIGHTNESS_LEVEL_ON_AC,
+                                     g_param_spec_uint  
(BRIGHTNESS_LEVEL_ON_AC,
                                                         NULL, NULL,
                                                        1,
                                                        100,
@@ -351,7 +351,7 @@ xfpm_xfconf_class_init (XfpmXfconfClass *klass)
      **/
     g_object_class_install_property (object_class,
                                      PROP_BRIGHTNESS_LEVEL_ON_BATTERY,
-                                     g_param_spec_int  
(BRIGHTNESS_LEVEL_ON_BATTERY,
+                                     g_param_spec_uint  
(BRIGHTNESS_LEVEL_ON_BATTERY,
                                                         NULL, NULL,
                                                        1,
                                                        100,
continue with "q"...



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to