]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/gpe-conf/gpe-conf-0.1.22/battery_with_no_lifetime.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / gpe-conf / gpe-conf-0.1.22 / battery_with_no_lifetime.patch
1 Index: gpe-conf-0.1.22/battery.c
2 ===================================================================
3 --- gpe-conf-0.1.22.orig/battery.c      2004-10-25 19:28:49.000000000 +0100
4 +++ gpe-conf-0.1.22/battery.c   2005-02-17 13:04:41.000000000 +0000
5 @@ -346,8 +346,10 @@
6                         
7                         if (ac_connected)
8                                 sprintf(tmp,"%s",_("AC connected"));
9 -                       else
10 +                       else if (remaining > 0)
11                                 sprintf(tmp,"%s: %d min.",_("Lifetime"), remaining);
12 +                        else 
13 +                                sprintf(tmp,"");
14                         gtk_label_set_text(GTK_LABEL(batt_int.llifetime),tmp);
15                 }
16         }