Bugzilla – Attachment 65509 Details for
Bug 142382
Battery Notice displays -1 minute remaining
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
adds test for negative time remaing to correct -1 minutes remaing in low battery warning
gnome-applets-battstat_applet.patch (text/plain), 1.49 KB, created by
Jared Ottley
on 2006-01-27 20:05:33 UTC
(
hide
)
Description:
adds test for negative time remaing to correct -1 minutes remaing in low battery warning
Filename:
MIME Type:
Creator:
Jared Ottley
Created:
2006-01-27 20:05:33 UTC
Size:
1.49 KB
patch
obsolete
>--- gnome-applets-2.12.0/battstat/battstat_applet.c 2005-08-27 12:13:24.000000000 -0600 >+++ gnome-applets-2.12.0-working/battstat/battstat_applet.c 2006-01-27 01:35:31.000000000 -0700 >@@ -511,13 +511,18 @@ battery_low_update_text( ProgressData *b > gtk_widget_set_size_request( GTK_WIDGET( battstat->battery_low_label ), > size.width, size.height ); > >- remaining = g_strdup_printf( ngettext( >- "You have %d minute of battery power " >- "remaining (%d%% of the total capacity).", >- "You have %d minutes of battery power " >- "remaining (%d%% of the total capacity).", >- info->minutes ), >- info->minutes,info->percent ); >+ if( info->minutes >= 0 ) >+ remaining = g_strdup_printf( ngettext( >+ "You have %d minute of battery power " >+ "remaining (%d%% of the total capacity).", >+ "You have %d minutes of battery power " >+ "remaining (%d%% of the total capacity).", >+ info->minutes ), >+ info->minutes,info->percent ); >+ else >+ remaining = g_strdup_printf( "You have unknown minutes of battery power " >+ "remaining (%d%% of the total capacity).", >+ info->percent ); > > new_label = g_strdup_printf ( > "<span weight=\"bold\" size=\"larger\">%s</span>\n\n%s\n\n%s",
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 142382
: 65509