OSDN Git Service

upg
[joborun/jobcore.git] / glib2 / 0001-glib-compile-schemas-Remove-noisy-deprecation-warnin.patch
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 ---
7  gio/glib-compile-schemas.c | 13 -------------
8  1 file changed, 13 deletions(-)
9
10 diff --git a/gio/glib-compile-schemas.c b/gio/glib-compile-schemas.c
11 index 7e1152f6bf45..924a3e7f176a 100644
12 --- a/gio/glib-compile-schemas.c
13 +++ b/gio/glib-compile-schemas.c
14 @@ -1232,19 +1232,6 @@ parse_state_start_schema (ParseState  *state,
15        return;
16      }
17  
18 -  if (path && (g_str_has_prefix (path, "/apps/") ||
19 -               g_str_has_prefix (path, "/desktop/") ||
20 -               g_str_has_prefix (path, "/system/")))
21 -    {
22 -      gchar *message = NULL;
23 -      message = g_strdup_printf (_("Warning: Schema “%s” has path “%s”.  "
24 -                                   "Paths starting with "
25 -                                   "“/apps/”, “/desktop/” or “/system/” are deprecated."),
26 -                                 id, path);
27 -      g_printerr ("%s\n", message);
28 -      g_free (message);
29 -    }
30 -
31    state->schema_state = schema_state_new (path, gettext_domain,
32                                            extends, extends_name, list_of);
33