remove-nagging.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. diff --git a/driver/demo-Gtk.c b/driver/demo-Gtk.c
  2. index 0406d31..002c010 100644
  3. --- a/driver/demo-Gtk.c
  4. +++ b/driver/demo-Gtk.c
  5. @@ -5012,6 +5012,7 @@ main (int argc, char **argv)
  6. gtk_timeout_add (5 * 1000, the_network_is_not_the_computer, s);
  7. +#ifdef I_LOVE_NAG_SCREENS
  8. if (time ((time_t *) 0) - XSCREENSAVER_RELEASED > 60*60*24*30*17)
  9. warning_dialog (s->toplevel_widget,
  10. _("Warning:\n\n"
  11. @@ -5024,6 +5025,7 @@ main (int argc, char **argv)
  12. "your distro is doing you a disservice. Build from source.)\n"
  13. ),
  14. D_NONE, 7);
  15. +#endif // I_LOVE_NAG_SCREENS
  16. /* Run the Gtk event loop, and not the Xt event loop. This means that
  17. if there were Xt timers or fds registered, they would never get serviced,
  18. diff --git a/driver/dialog.c b/driver/dialog.c
  19. index 1ab6ee4..027a1ed 100644
  20. --- a/driver/dialog.c
  21. +++ b/driver/dialog.c
  22. @@ -1372,6 +1372,7 @@ window_draw (window_state *ws)
  23. lines[i].align = CENTER;
  24. i++;
  25. +#ifdef I_LOVE_NAG_SCREENS
  26. if (time ((time_t *) 0) - XSCREENSAVER_RELEASED > 60*60*24*30*17)
  27. {
  28. lines[i].text = _("Update available!\nThis version is very old.\n");
  29. @@ -1395,6 +1396,7 @@ window_draw (window_state *ws)
  30. lines[i].align = CENTER;
  31. i++;
  32. }
  33. +#endif // I_LOVE_NAG_SCREENS
  34. if (ws->hostname_label && *ws->hostname_label)
  35. {