GNOME Bugzilla – Bug 651253
atk using ATK_DISABLE_DEPRECATED references deprecated symbol
Last modified: 2013-12-11 12:36:35 UTC
Created attachment 188752 [details] [review] Wrap function call and implementation When compiling atk with ATK_DISABLE_DEPRECATED it's using the deprecated atk_hyperlink_is_selected_link() symbol. The prototype of this function is wrapped in #ifndef ATK_DISABLE_DEPRECATED, so wrap the callers accordingly. Fix attached.
It turns out this patch breaks py-gtk2 so it makes me wonder where this API inconsistency comes from. Is the function deprecated or not?
(In reply to comment #1) > It turns out this patch breaks py-gtk2 so it makes me wonder where this API > inconsistency comes from. Is the function deprecated or not? Deprecated means that it shouldn't be used for new code, and eventually, it will be remove. If pygtk breaks is because it is using a deprecated function. So it is IMHO, a pygtk bug, something like "pygtk is using a deprecated function".
(In reply to comment #0) > Created an attachment (id=188752) [details] [review] > Wrap function call and implementation > > When compiling atk with ATK_DISABLE_DEPRECATED it's using the deprecated > atk_hyperlink_is_selected_link() symbol. The prototype of this function is > wrapped in #ifndef ATK_DISABLE_DEPRECATED, so wrap the callers accordingly. > > Fix attached. After review this patch I realized that it would be also good to mark as deprecated the property "selected-link", as it is providing the same info that this deprecated function. Opinions? (Li?) Anyway, if we don't deprecate the property, what we need to do on the get_property code is not wrap it. After all, if this function is deprecated, the first thing module that would start to not use it is ATK. So that call should be replaced by his replacement: Warning atk_hyperlink_is_selected_link is deprecated and should not be used in newly-written code. Please use ATK_STATE_SELECTED to indicate when a hyperlink within a Hypertext container is selected.
[Mass-reassigning open atk bug reports for better trackability as requested in https://bugzilla.gnome.org/show_bug.cgi?id=653179 . PLEASE NOTE: If you have watched the previous assignee of this bug report as a workaround for actually getting notified of changes in atk bugs, you yourself will now have to add atk-maint@gnome.bugs to your watchlist at the bottom of https://bugzilla.gnome.org/userprefs.cgi?tab=email to keep watching atk bug reports in GNOME Bugzilla. Sorry for the noise: Feel free to filter for this comment in order to mass-delete the triggered bugmail.]
The property was deprecated while woking on bug 573539. This issue should be solved. Reopen if that is not the case. *** This bug has been marked as a duplicate of bug 573539 ***