Don't display seconds in countdown label
Bug #1475208 reported by
Kirr
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Alarm Clock Applet |
New
|
Undecided
|
Unassigned |
Bug Description
There is an option to show the countdown label. Seconds on the label could be distracting, annoying, superfluous. I suggest adding an option to change the format of countdown label to "hh:mm" (where "hh" stands for remaining hours and "mm" is remaining minutes)
In case if someone wants this, I changed line 229 in ui.c:
tmp = g_strdup_ printf( "%02d:% 02d:%02d" , tm->tm_hour, tm->tm_min, tm->tm_sec);
to:
tmp = g_strdup_ printf( "%d:%02d" , tm->tm_hour, tm->tm_min);
It corresponds to format "h:mm".