Bug 93255 - GTK threaded animation example on website uses obsolete functions
Summary: GTK threaded animation example on website uses obsolete functions
Status: RESOLVED MOVED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium trivial
Assignee: Chris Wilson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-04 23:15 UTC by Kota Weaver
Modified: 2018-08-25 13:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Kota Weaver 2015-12-04 23:15:22 UTC
On http://cairographics.org/examples/ the first example under the "Animation" header is "threaded animation with cairo" which can be found here: http://cairographics.org/threaded_animation_with_cairo/

The problem is this requires the use of deprecated functions in GObject and GDK, namely:
 - g_thread_supported()
 - g_thread_init()
 - gdk_threads_init()
 - gdk_threads_enter()
 - gdk_threads_leave()
and perhaps others.

While setting up another example would likely take some work, I figure a reasonable thing to do at this point would be to have a warning at the top of the page mentioning that the example is outdated and uses obsolete techniques.
Comment 1 Bryce Harrington 2015-12-09 19:28:34 UTC
Would you be interested in providing a better re-implementation of the example?

If not, I think I'd favor removing the example entirely.
Comment 2 Kota Weaver 2015-12-09 19:43:05 UTC
Yeah, I would love to do that.
Comment 3 GitLab Migration User 2018-08-25 13:56:13 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/276.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.