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 772552 - Deprecate gtk_menu_popup
Deprecate gtk_menu_popup
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-10-07 07:36 UTC by Carlos Soriano
Modified: 2016-10-13 15:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Carlos Soriano 2016-10-07 07:36:35 UTC
recently in https://bugzilla.gnome.org/show_bug.cgi?id=772507 I learnt gtk_menu_popup doesn't work as expected in backends with no global coordinates like wayland, which is unexpected and no warning is raised.

Instead we have gtk_menu_popup_at_pointer (new in gtk+ 3.22) and  gtk_menu_popup_at_widget as pointed out by Emmanuele that work in backends with no global coordinates.

Given that, I think would be best to deprecate gtk_menu_popup in favor of those functions.
Comment 1 Leo Ufimtsev 2016-10-13 14:47:22 UTC
Was gtk_menu_popup deprecated?

In unstable documentation it's not listed as deprecated:
https://developer.gnome.org/gtk3/unstable/GtkMenu.html#gtk-menu-popup

Thank you.
Comment 2 Emmanuele Bassi (:ebassi) 2016-10-13 15:08:50 UTC
(In reply to Leo Ufimtsev from comment #1)
> Was gtk_menu_popup deprecated?

Yes:

https://git.gnome.org/browse/gtk+/commit/?h=gtk-3-22&id=dd9a9d9dcca9f02de1038ace3f278f8ef14a7052

> In unstable documentation it's not listed as deprecated:
> https://developer.gnome.org/gtk3/unstable/GtkMenu.html#gtk-menu-popup

The documentation website is only updated after a release, not at every git commit.