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 743975 - Better deprecation information for GtkStatusIcon
Better deprecation information for GtkStatusIcon
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.15.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-02-04 10:37 UTC by Bastien Nocera
Modified: 2018-02-17 22:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
docs: Add proper deprecation text for GtkStatusIcon (16.05 KB, patch)
2018-02-13 11:13 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
docs: Add proper deprecation text for GtkStatusIcon (15.87 KB, patch)
2018-02-13 13:56 UTC, Emmanuele Bassi (:ebassi)
accepted-commit_now Details | Review

Description Bastien Nocera 2015-02-04 10:37:11 UTC
"Use notifications" is seriously glib.

We should be able to link to a section of example code that would make use of persistent notifications, as an example.
Comment 1 Matthias Clasen 2015-02-05 09:44:10 UTC
I've added some links to the long description for now. Still need to
flesh out the per-function deprecation notes.
Comment 2 Matthias Clasen 2018-02-10 05:06:03 UTC
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Comment 3 Bastien Nocera 2018-02-13 10:42:10 UTC
This is still relevant for GTK+ 3.x. GtkStatusIcon has been removed in GTK+ 4.
Comment 4 Emmanuele Bassi (:ebassi) 2018-02-13 11:13:44 UTC
Created attachment 368307 [details] [review]
docs: Add proper deprecation text for GtkStatusIcon

We link to the HowDoI for GNotification in the class description, but we
should be more verbose in the deprecation notices for each function of
the GtkStatusIcon class.
Comment 5 Bastien Nocera 2018-02-13 13:47:28 UTC
Review of attachment 368307 [details] [review]:

Apart from that one section, it's very good. Thanks!

::: gtk/deprecated/gtkstatusicon.c
@@ +2155,3 @@
+ *   You should, instead, associate one or more actions with the
+ *   #GNotification object, and the platform will invoke the appropriate
+ *   action depending on the user's interaction

Is this the right documentation for "set_visible"? I don't understand how it's connected.
Comment 6 Emmanuele Bassi (:ebassi) 2018-02-13 13:56:35 UTC
Created attachment 368310 [details] [review]
docs: Add proper deprecation text for GtkStatusIcon

We link to the HowDoI for GNotification in the class description, but we
should be more verbose in the deprecation notices for each function of
the GtkStatusIcon class.
Comment 7 Matthias Clasen 2018-02-15 02:48:36 UTC
Review of attachment 368310 [details] [review]:

looks good to me