Bugzilla – Attachment 175608 Details for
Bug 310273
Auto-brightness setting fights my manual control
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
[patch]
proposed patch
gnome-power-manager-brightness.patch (text/plain), 1.40 KB, created by
Scott Reeves
on 2007-09-29 00:11:43 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Scott Reeves
Created:
2007-09-29 00:11:43 UTC
Size:
1.40 KB
patch
obsolete
>--- applets/brightness/brightness-applet.c >+++ applets/brightness/brightness-applet.c >@@ -117,7 +117,7 @@ > { > GError *error = NULL; > gboolean ret; >- guint policy_brightness; >+ int policy_brightness; > > if (applet->proxy == NULL) { > printf ("WARNING: not connected\n"); >@@ -133,7 +133,7 @@ > g_error_free (error); > } > if (ret == TRUE) { >- applet->level = policy_brightness; >+ applet->level = (guint)policy_brightness; > } else { > /* abort as the DBUS method failed */ > printf ("WARNING: GetBrightness failed!\n"); >--- libhal-glib/libhal-gpower.c >+++ libhal-glib/libhal-gpower.c >@@ -382,7 +382,7 @@ > ret = dbus_g_proxy_call (proxy, "SetPowerSave", &error, > G_TYPE_BOOLEAN, enable, > G_TYPE_INVALID, >- G_TYPE_UINT, &retval, >+ G_TYPE_INT, &retval, > G_TYPE_INVALID); > if (retval != 0) { > g_warning ("SetPowerSave failed in a horrible way!"); >--- src/gpm-brightness-lcd.c >+++ src/gpm-brightness-lcd.c >@@ -97,7 +97,7 @@ > > ret = dbus_g_proxy_call (proxy, "GetBrightness", &error, > G_TYPE_INVALID, >- G_TYPE_UINT, &level, >+ G_TYPE_INT, &level, > G_TYPE_INVALID); > > if (brightness_level_hw != NULL) { >@@ -157,7 +157,7 @@ > ret = dbus_g_proxy_call (proxy, "SetBrightness", &error, > G_TYPE_INT, (int)brightness_level_hw, > G_TYPE_INVALID, >- G_TYPE_UINT, &retval, >+ G_TYPE_INT, &retval, > G_TYPE_INVALID); > /* retval is ignored, the HAL API is broken... */ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 310273
: 175608