After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732449 - Support deprecating properties
Support deprecating properties
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Code Generator: GObject
0.24.x
Other Linux
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2014-06-29 21:47 UTC by Simon Werbeck
Modified: 2016-10-18 18:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Support deprecating properties and their accessors (1.61 KB, patch)
2014-06-29 21:47 UTC, Simon Werbeck
none Details | Review
codegen: Support deprecating properties and their accessors (6.73 KB, patch)
2016-10-13 07:41 UTC, Rico Tzschichholz
committed Details | Review

Description Simon Werbeck 2014-06-29 21:47:54 UTC
Created attachment 279562 [details] [review]
Support deprecating properties and their accessors

Since glib 2.26 it is possible to pass the G_PARAM_DEPRECATED flag at property
creation. I made a patch to support this using the [Deprecated] attribute.
In addition, accessor methods of deprecated properties are also marked as such.
Comment 1 Rico Tzschichholz 2016-10-13 07:41:52 UTC
Created attachment 337559 [details] [review]
codegen: Support deprecating properties and their accessors

Use G_PARAM_DEPRECATED for properties and in addition their accessor
methods will be marked as deprecated.

Guard internal accessors calls with G_GNUC_BEGIN/END_IGNORED_DEPRECATIONS
to silence unavoidable warnings.

Based on patch by Simon Werbeck <simon.werbeck@gmail.com>
Comment 2 Rico Tzschichholz 2016-10-18 09:12:00 UTC
Attachment 337559 [details] pushed as ad87c4e - codegen: Support deprecating properties and their accessors
Comment 3 Philip Withnall 2016-10-18 18:10:31 UTC
This seems to be missing a newline after G_GNUC_BEGIN_IGNORE_DEPRECATIONS in generated code. Fix in bug #773129.