From 85882094df02ab6d3f8773e9dda2b96d89b59ad1 Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Tue, 31 Jan 2017 03:10:24 +0200 Subject: [PATCH] Better documentation for g_app_info_equal() Explicitly state that the function may not compare the contents of the passed GAppInfo instances. This fixes bug #777961. --- gio/gappinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gio/gappinfo.c b/gio/gappinfo.c index 30501fd49..4c8c2881f 100644 --- a/gio/gappinfo.c +++ b/gio/gappinfo.c @@ -139,6 +139,10 @@ g_app_info_dup (GAppInfo *appinfo) * * Checks if two #GAppInfos are equal. * + * Note that the check may not compare each individual field, and + * only does an identity check. In case detecting changes in the contents + * is needed, program code must additionally compare relevant fields. + * * Returns: %TRUE if @appinfo1 is equal to @appinfo2. %FALSE otherwise. **/ gboolean