summaryrefslogtreecommitdiff
path: root/libre/xscreensaver/remove-nagging.patch
blob: 8cdbea66c1aee59c37113b033b5b6322cbc65a80 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
diff --git a/driver/demo-Gtk.c b/driver/demo-Gtk.c
index 0406d31..002c010 100644
--- a/driver/demo-Gtk.c
+++ b/driver/demo-Gtk.c
@@ -5012,6 +5012,7 @@ main (int argc, char **argv)
     gtk_timeout_add (5 * 1000, the_network_is_not_the_computer, s);
 
 
+#ifdef I_LOVE_NAG_SCREENS
   if (time ((time_t *) 0) - XSCREENSAVER_RELEASED > 60*60*24*30*17)
     warning_dialog (s->toplevel_widget,
       _("Warning:\n\n"
@@ -5024,6 +5025,7 @@ main (int argc, char **argv)
         "your distro is doing you a disservice. Build from source.)\n"
         ),
       D_NONE, 7);
+#endif // I_LOVE_NAG_SCREENS
 
   /* Run the Gtk event loop, and not the Xt event loop.  This means that
      if there were Xt timers or fds registered, they would never get serviced,
diff --git a/driver/dialog.c b/driver/dialog.c
index 1ab6ee4..027a1ed 100644
--- a/driver/dialog.c
+++ b/driver/dialog.c
@@ -1372,6 +1372,7 @@ window_draw (window_state *ws)
   lines[i].align = CENTER;
   i++;
 
+#ifdef I_LOVE_NAG_SCREENS
   if (time ((time_t *) 0) - XSCREENSAVER_RELEASED > 60*60*24*30*17)
     {
       lines[i].text  = _("Update available!\nThis version is very old.\n");
@@ -1395,6 +1396,7 @@ window_draw (window_state *ws)
       lines[i].align = CENTER;
       i++;
     }
+#endif // I_LOVE_NAG_SCREENS
 
   if (ws->hostname_label && *ws->hostname_label)
     {