Bug 387149 - Make gdk_gc_set_values() dynamic
Summary: Make gdk_gc_set_values() 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 16:39 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 16:39:43 EDT
As all occurrences of gdk_gc_set_values() has alternative cairo implementation, there is no need to keep this method static.

 This patch makes gdk_gc_set_values() dynamic, thus removing warning when compiling with GDK_DISABLE_DEPRECATED:

http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=gdk_gc_set_values
Comment 1 Silenio Quarti CLA 2012-08-13 17:31:22 EDT
Need to remove casts. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=387144#c1
Comment 2 Anatoly Spektor CLA 2012-08-14 09:43:13 EDT
Casts removed (I think it works with  cast=(GdkGCValues *),flags=no_out):

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