File: 01_improve-timer-stop.patch

package info (click to toggle)
xfce4-timer-plugin 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 2,080 kB
  • ctags: 333
  • sloc: sh: 11,325; ansic: 1,188; makefile: 100
file content (15 lines) | stat: -rw-r--r-- 399 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
 src/xfcetimer.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/src/xfcetimer.c
+++ b/src/xfcetimer.c
@@ -167,6 +167,8 @@ static gboolean update_function (gpointe
   }
 
   /* Countdown is over, stop timer and free resources */
+  g_snprintf(tiptext,31,_("%ds left"),0);
+  gtk_tooltips_set_tip(pd->tip,GTK_WIDGET(pd->base),tiptext,NULL);
 
   if(pd->timer)
      g_timer_destroy(pd->timer);