Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 387993 - Omit use of deprecated gdk_region_polygon in Tooltip widget
Summary: Omit use of deprecated gdk_region_polygon in Tooltip widget
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 M4   Edit
Assignee: Silenio Quarti CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2012-08-24 10:07 EDT by Anatoly Spektor CLA
Modified: 2012-11-16 10:44 EST (History)
2 users (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-24 10:07:31 EDT
Tooltip.configure() widget uses these two function:  

                int /*long*/ rgn = OS.gdk_region_polygon (polyline, polyline.length / 2, OS.GDK_EVEN_ODD_RULE);
		 OS.gdk_window_shape_combine_region (window, rgn, 0, 0);

First one can be replicated with cairo, however I believe that second one, can be only replicated with use of GTK 3.0 functions.

Method gdk_region_polygon () produces warnings and errors, and without its replacement, SWT cannot be built against 2.4.

Here is the patch I propose:

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


Patch is guarded with GTK 3.0 as functions: 
           gdk_cairo_region_create_from_surface();
          gtk_widget_shape_combine_region ();
is GTK+ 3.0 functions.

Note: The patch has not been fully tested, as it is not possible to build against 3.0, however, without removing such issues it is not possible to build.

If there should be some other stated procedure on dealing with issues from:

http://developer.gnome.org/gtk3/stable/ch24s02.html 

 please let me know.
Comment 1 Silenio Quarti CLA 2012-11-02 10:38:03 EDT
This is fixed in latest.