Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1
xfce4-power-manager
xfce4-power-manager-1.0.10-fix-saving-brightnes...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xfce4-power-manager-1.0.10-fix-saving-brightness-levels.patch of Package xfce4-power-manager
--- 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,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor