|
Lines 511-523
battery_low_update_text( ProgressData *b
Link Here
|
| 511 |
gtk_widget_set_size_request( GTK_WIDGET( battstat->battery_low_label ), |
511 |
gtk_widget_set_size_request( GTK_WIDGET( battstat->battery_low_label ), |
| 512 |
size.width, size.height ); |
512 |
size.width, size.height ); |
| 513 |
|
513 |
|
| 514 |
remaining = g_strdup_printf( ngettext( |
514 |
if( info->minutes >= 0 ) |
| 515 |
"You have %d minute of battery power " |
515 |
remaining = g_strdup_printf( ngettext( |
| 516 |
"remaining (%d%% of the total capacity).", |
516 |
"You have %d minute of battery power " |
| 517 |
"You have %d minutes of battery power " |
517 |
"remaining (%d%% of the total capacity).", |
| 518 |
"remaining (%d%% of the total capacity).", |
518 |
"You have %d minutes of battery power " |
| 519 |
info->minutes ), |
519 |
"remaining (%d%% of the total capacity).", |
| 520 |
info->minutes,info->percent ); |
520 |
info->minutes ), |
|
|
521 |
info->minutes,info->percent ); |
| 522 |
else |
| 523 |
remaining = g_strdup_printf( "You have unknown minutes of battery power " |
| 524 |
"remaining (%d%% of the total capacity).", |
| 525 |
info->percent ); |
| 521 |
|
526 |
|
| 522 |
new_label = g_strdup_printf ( |
527 |
new_label = g_strdup_printf ( |
| 523 |
"<span weight=\"bold\" size=\"larger\">%s</span>\n\n%s\n\n%s", |
528 |
"<span weight=\"bold\" size=\"larger\">%s</span>\n\n%s\n\n%s", |