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 736622 - Better mark GtkAlignment as deprecated
Better mark GtkAlignment as deprecated
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Documentation
3.13.x
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-09-13 15:30 UTC by Sébastien Wilmet
Modified: 2014-09-17 13:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Better mark GtkAlignment as deprecated (3.97 KB, patch)
2014-09-13 15:30 UTC, Sébastien Wilmet
needs-work Details | Review
Better mark GtkAlignment as deprecated (3.61 KB, patch)
2014-09-17 13:03 UTC, Sébastien Wilmet
committed Details | Review

Description Sébastien Wilmet 2014-09-13 15:30:04 UTC
See the attached patch.

I can also check the other recently deprecated classes and do the same if something is missing.
Comment 1 Sébastien Wilmet 2014-09-13 15:30:43 UTC
Created attachment 286133 [details] [review]
Better mark GtkAlignment as deprecated

- Move the class to the Deprecated section.
- Warning at the top of the class description.
- A missing property was not marked as deprecated.
- Update doc of gtk_container_set_border_width() to not mention
  GtkAlignment.
Comment 2 Sébastien Wilmet 2014-09-14 11:22:07 UTC
Review of attachment 286133 [details] [review]:

::: gtk/deprecated/gtkalignment.c
@@ +28,3 @@
  * @Title: GtkAlignment
  *
+ * <warning>

This doesn't work, strange, it works fine in GtkSourceView.
I've tried with <warning><para>, but it doesn't work either.

How to display a warning? It's maybe a bug in GTK-Doc.
Comment 3 Emmanuele Bassi (:ebassi) 2014-09-14 15:56:10 UTC
Review of attachment 286133 [details] [review]:

::: gtk/deprecated/gtkalignment.c
@@ +29,3 @@
  *
+ * <warning>
+ * GtkAlignment is deprecated and should not be used in newly-written code.

we don't use DocBook XML tags in the GLib/GTK documentation any more.

in theory, the "Deprecated: <version>: additional text" tag should work on descriptions as well.

alternatively, just add the `Deprecated:` tag on the instance structure annotation.
Comment 4 Sébastien Wilmet 2014-09-14 16:54:26 UTC
"Deprecated:" in the class description doesn't work, the text is not displayed at all.

Putting the warning in the instance struct would make it less visible. The idea was to have the warning as visible as possible, so developers don't loose time by reading the class description, and then figure out that the class is deprecated…

Maybe just write "Warning:" in bold at the beginning of the class description?
Comment 5 Matthias Clasen 2014-09-15 23:47:31 UTC
I'm in favor of keeping things low-key for deprecations, a sentence at the end of the long description is sufficient. Like we do here: https://developer.gnome.org/gtk3/3.13/GtkStatusIcon.html
Comment 6 Sébastien Wilmet 2014-09-17 13:03:59 UTC
Created attachment 286370 [details] [review]
Better mark GtkAlignment as deprecated

- Move the class to the Deprecated section.
- Warning at the bottom of the class description.
- A missing property was not marked as deprecated.
- Update doc of gtk_container_set_border_width() to not mention
  GtkAlignment.
Comment 7 Sébastien Wilmet 2014-09-17 13:13:01 UTC
All other classes deprecated in 3.14 are correctly marked as deprecated in the class description, and are present in the Deprecated section.
Comment 8 Matthias Clasen 2014-09-17 13:21:18 UTC
Review of attachment 286370 [details] [review]:

This looks good to me, thanks
Comment 9 Sébastien Wilmet 2014-09-17 13:36:20 UTC
Comment on attachment 286370 [details] [review]
Better mark GtkAlignment as deprecated

Thanks for the quick review.