GNOME Bugzilla – Bug 663581
Add G_SIGNAL_DEPRECATED
Last modified: 2011-11-11 12:57:01 UTC
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.
Created attachment 200913 [details] [review] Add G_SIGNAL_DEPRECATED
just noticed bug 601686, but the patch is obsolete there, and warn on different cases (on emit, but not on override).
Review of attachment 200913 [details] [review]: Looks fine to me.
committed as fb95c20c96 (something went wrong with git-bz)
Review of attachment 200913 [details] [review]: ::: gobject/gsignal.h @@ +136,3 @@ * A mask for all #GSignalFlags bits. */ +#define G_SIGNAL_FLAGS_MASK 0x1ff ehrm, I arrived lated, but isn't this an API break? we went through the same thing with the GParamSpec G_PARAM_DEPRECATED flag.
Review of attachment 200913 [details] [review]: ::: gobject/gsignal.h @@ +136,3 @@ * A mask for all #GSignalFlags bits. */ +#define G_SIGNAL_FLAGS_MASK 0x1ff there is no user defined flags in signals. And I can't see how someone could have made one since it masked out in gsignal.c.