noisy-glib-compile-schemas.diff 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
  3. Date: Fri, 7 Jan 2022 18:59:10 +0000
  4. Subject: [PATCH] glib-compile-schemas: Remove noisy deprecation warnings
  5. ---
  6. gio/glib-compile-schemas.c | 13 -------------
  7. 1 file changed, 13 deletions(-)
  8. diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
  9. index 326658a88b35..f61d45b9a364 100644
  10. --- a/gio/glib-compile-schemas.c
  11. +++ b/gio/glib-compile-schemas.c
  12. @@ -1234,19 +1234,6 @@ parse_state_start_schema (ParseState *state,
  13. return;
  14. }
  15. - if (path && (g_str_has_prefix (path, "/apps/") ||
  16. - g_str_has_prefix (path, "/desktop/") ||
  17. - g_str_has_prefix (path, "/system/")))
  18. - {
  19. - gchar *message = NULL;
  20. - message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”. "
  21. - "Paths starting with "
  22. - "“/apps/”, “/desktop/” or “/system/” are deprecated."),
  23. - id, path);
  24. - g_printerr ("%s\n", message);
  25. - g_free (message);
  26. - }
  27. -
  28. state->schema_state = schema_state_new (path, gettext_domain,
  29. extends, extends_name, list_of);