Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 387144 - Make gdk_pixbuf_render_to_drawable() dynamic
Summary: Make gdk_pixbuf_render_to_drawable() dynamic
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.3 M2   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2012-08-13 15:37 EDT by Anatoly Spektor CLA
Modified: 2012-10-24 14:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anatoly Spektor CLA 2012-08-13 15:37:08 EDT
As all the occurrences of gdk_pixbuf_render_to_drawable()  have Cairo implementations instead, there is no need to keep it static.

This patch makes gdk_pixbuf_render_to_drawable() dynamic, thus omitting warning when GDK_DISABLE_DEPRICATED is defined:


http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=gdk_pixbuf_render
Comment 1 Silenio Quarti CLA 2012-08-13 17:30:14 EDT
Need to remove the casts otherwise the C compilation we still fail at least for GdkGC. Not sure about other casts GdkDrawable, etc.
Comment 2 Anatoly Spektor CLA 2012-08-14 09:41:00 EDT
Thanks for pointing that out.

I have removed casts:

http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=gdk_pixbuf_render