mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 07:38:54 +02:00
Add G_SIGNAL_DEPRECATED
Similar to G_PARAM_DEPRECATED. It will warn only for users of the signals, so a signal can still be emited without warning, for compatibility reasons. Apparently, there is no way user flags could have been used before, so that shouldn't break anyone. https://bugzilla.gnome.org/show_bug.cgi?id=663581
This commit is contained in:
@@ -1171,7 +1171,7 @@ object_set_property (GObject *object,
|
||||
if (enable_diagnostic[0] == '1')
|
||||
{
|
||||
if (pspec->flags & G_PARAM_DEPRECATED)
|
||||
g_warning ("The property %s::%s is deprecated and shouldn't be used "
|
||||
g_warning ("The property %s:%s is deprecated and shouldn't be used "
|
||||
"anymore. It will be removed in a future version.",
|
||||
G_OBJECT_TYPE_NAME (object), pspec->name);
|
||||
}
|
||||
|
Reference in New Issue
Block a user