Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 387133 - Omit use of deprecated method gdk_drawable_get_size() for newer GTK+ and make it dynamic
Summary: Omit use of deprecated method gdk_drawable_get_size() for newer GTK+ and ma...
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: Arun Thondapu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2012-08-13 13:10 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 13:10:48 EDT
Work on gdk_drawable_get_size() started here: 

          https://bugs.eclipse.org/bugs/show_bug.cgi?id=383842

     As it was GC widget related, I've decided to open separate bug for implementation of new GTK API calls for newer GTK+ in remaining methods.


  What I have done:

 Created 2  helper functions:

 1. Widget.gdk_pixmap_get_size for pixmaps
 2. Widget.gdk_window_get_size for windows

 Replaced OS.gdk_drawable_get_size  with these 2 functions in Widget's scope, implemented version guards outside Widget's scope.

 Made gtk_drawable_get_size dynamic.


 Patch is available here:

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