Package: xfce4-timer-plugin / 0.6.3-1

01_improve-timer-stop.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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!"));