gnome-power-manager r2699 - in trunk: . src
- From: davidz svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r2699 - in trunk: . src
- Date: Tue, 4 Mar 2008 23:38:09 +0000 (GMT)
Author: davidz
Date: Tue Mar 4 23:38:09 2008
New Revision: 2699
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=2699&view=rev
Log:
2008-03-04 David Zeuthen <davidz redhat com>
* src/gpm-prefs-core.c: (conf_key_changed_cb): Update the slider
when the value in gconf changes. This fixes a bug when using the
brightness applet and the slider isn't updated. Fixes bug #520411.
Modified:
trunk/ChangeLog
trunk/src/gpm-prefs-core.c
Modified: trunk/src/gpm-prefs-core.c
==============================================================================
--- trunk/src/gpm-prefs-core.c (original)
+++ trunk/src/gpm-prefs-core.c Tue Mar 4 23:38:09 2008
@@ -672,8 +672,16 @@
const gchar *key,
GpmPrefs *prefs)
{
+ int value;
+ GtkWidget *widget;
gboolean enabled;
+ if (strcmp (key, GPM_CONF_BACKLIGHT_BRIGHTNESS_AC) == 0) {
+ widget = glade_xml_get_widget (prefs->priv->glade_xml, "hscale_ac_brightness");
+ gpm_conf_get_int (conf, key, &value);
+ gtk_range_set_value (GTK_RANGE (widget), value);
+ }
+
if (strcmp (key, GPM_CONF_LOWPOWER_AC) == 0) {
gpm_conf_get_bool (prefs->priv->conf, GPM_CONF_LOWPOWER_AC, &enabled);
gpm_debug ("need to enable checkbox");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]