diff options
Diffstat (limited to 'libre/xscreensaver/remove-nagging.patch')
-rw-r--r-- | libre/xscreensaver/remove-nagging.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libre/xscreensaver/remove-nagging.patch b/libre/xscreensaver/remove-nagging.patch new file mode 100644 index 000000000..8cdbea66c --- /dev/null +++ b/libre/xscreensaver/remove-nagging.patch @@ -0,0 +1,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) + { |