Bug 93255

Summary: GTK threaded animation example on website uses obsolete functions
Product: cairo Reporter: Kota Weaver <kota.weaver>
Component: generalAssignee: Chris Wilson <chris>
Status: RESOLVED MOVED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: trivial    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.