Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 61301 Details for
Bug 78316
Gnome Battery Charge Monitor doesn't update
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
acpi-fix.patch
acpi-fix.patch (text/plain), 1.33 KB, created by
Alessio D'Ascanio
on 2005-06-15 14:00:57 UTC
(
hide
)
Description:
acpi-fix.patch
Filename:
MIME Type:
Creator:
Alessio D'Ascanio
Created:
2005-06-15 14:00:57 UTC
Size:
1.33 KB
patch
obsolete
>? t.tmp >Index: acpi-linux.c >=================================================================== >RCS file: /cvs/gnome/gnome-applets/battstat/acpi-linux.c,v >retrieving revision 1.10 >diff -u -p -r1.10 acpi-linux.c >--- acpi-linux.c 16 May 2004 12:39:26 -0000 1.10 >+++ acpi-linux.c 11 Jan 2005 12:06:05 -0000 >@@ -252,7 +252,6 @@ gboolean acpi_linux_init(struct acpi_inf > acpiinfo->event_fd = fd; > acpiinfo->channel = g_io_channel_unix_new(fd); > update_battery_info(acpiinfo); >- update_ac_info(acpiinfo); > return TRUE; > } > >@@ -265,7 +264,6 @@ gboolean acpi_linux_init(struct acpi_inf > acpiinfo->event_fd = fd; > acpiinfo->channel = g_io_channel_unix_new(fd); > update_battery_info(acpiinfo); >- update_ac_info(acpiinfo); > return TRUE; > } > } >@@ -325,7 +323,6 @@ gboolean acpi_process_event(struct acpi_ > evt = parse_acpi_event(buffer); > switch (evt) { > case ACPI_EVENT_AC: >- update_ac_info(acpiinfo); > result = TRUE; > break; > case ACPI_EVENT_BATTERY_INFO: >@@ -399,6 +396,8 @@ gboolean acpi_linux_read(struct apm_info > } > } > closedir(procdir); >+ >+ update_ac_info(acpiinfo); > > apminfo->ac_line_status = acpiinfo->ac_online ? 1 : 0; > apminfo->battery_status = remain < acpiinfo->low_capacity ? 1 : remain < acpiinfo->critical_capacity ? 2 : 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 78316
: 61301