File: 01_improve-timer-stop.patch

package info (click to toggle)
xfce4-timer-plugin 0.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,096 kB
  • ctags: 149
  • sloc: sh: 9,087; ansic: 910; makefile: 48
file content (25 lines) | stat: -rw-r--r-- 1,093 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/src/xfcetimer.c b/src/xfcetimer.c
index c27d37a..6bac153 100644
--- a/src/xfcetimer.c
+++ b/src/xfcetimer.c
@@ -115,13 +115,15 @@ static gboolean timeout_function (gpointer data){
   }
 
   /* 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);
 
   /*g_fprintf(stderr,"\nTimer command is ==> %s...",pd->timeout_command);*/
 
   if( (strlen(pd->timeout_command)==0) || !pd->nowin_if_alarm ) {
     gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(pd->pbar),1);
     dialog = gtk_message_dialog_new     (NULL,
-                                    GTK_DIALOG_DESTROY_WITH_PARENT,
+                                    GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
                                     GTK_MESSAGE_WARNING,
                                     GTK_BUTTONS_CLOSE,
                                     _("Beeep! :) \nTime is up!"));
--- /dev/null
+++ xfce4-timer-plugin-0.6.1/po/POTFILES.skip
@@ -0,0 +1 @@
+.pc/01_improve-timer-stop.patch/src/xfcetimer.c