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 633202 - Don't hide deprecated methods
Don't hide deprecated methods
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2010-10-26 15:32 UTC by Colin Walters
Modified: 2011-05-16 16:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Don't hide deprecated methods (3.79 KB, patch)
2010-10-26 15:32 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2010-10-26 15:32:48 UTC
When GJS was first created this sort of made sense to unilaterally
axe off all deprecated API.  However, since its creation, new
functions have been deprecated in libraries like GTK2, and it doesn't
make sense for scripts to start exploding immediately.

As for handling this better: A strawman proposal is some environment
variable like G_SCRIPT_RECORD_DEPRECATED=1 which prints exactly one
warning for each deprecated method?  Opinions?
Comment 1 Colin Walters 2010-10-26 15:32:49 UTC
Created attachment 173269 [details] [review]
Don't hide deprecated methods
Comment 2 Colin Walters 2011-05-16 16:39:20 UTC
I want gdk_display_get_pointer(), so I'm just going to apply this.
Comment 3 Dan Winship 2011-05-16 16:45:00 UTC
(In reply to comment #2)
> I want gdk_display_get_pointer()

Not unless you're going to fix bug 597292 first...
Comment 4 Dan Winship 2011-05-16 16:46:22 UTC
(In reply to comment #3)
> Not unless you're going to fix bug 597292 first...

/me reads the next message in his inbox...
Comment 5 Colin Walters 2011-05-16 16:47:36 UTC
Attachment 173269 [details] pushed as 1d36738 - Don't hide deprecated methods