Re: [gpm] (more) useful popups



On Mon, 2007-03-19 at 19:29 +0100, Tomasz Torcz wrote:
>  last time when I saw battery critical popup I thought -- couldn't
> this popup carry more information? Instead of plain ,,you have 10
> minutes left'' there sould be something like ,,computer will go into
> hibernation in 10 minutes''. Or ,,will suspend'', or ,,will power
> off'',
> depending on current configuration of g-p-m.
>   Is this possible? 

Yes, very possible. When the battery gets "action" low - i.e. when the
action is performed, we tell the user what will happen.

This is what we have at the moment:

title = _("Laptop battery critically low");
remaining = gpm_get_timestring (unit->time_discharge);
message = g_strdup_printf (_("You have approximately <b>%s</b> of remaining battery life (%d%%). "
			     "Plug in your AC adapter to avoid losing data."),
			   remaining, unit->percentage);

Does it make sense to have:

message = g_strdup_printf (_("You have approximately <b>%s</b> of remaining battery life (%d%%). "
			     "Plug in your AC adapter to avoid losing data."
			     "In %s your computer will automatically suspend due to low power"),
			   remaining, unit->percentage, time_until_action);

Comments please!

Richard.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]