Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 389741 - cairo_rectangle_int_t needed to replace GdkRegion functions where GdkRectangle is used
Summary: cairo_rectangle_int_t needed to replace GdkRegion functions where GdkRectangl...
Status: CLOSED DUPLICATE of bug 391050
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 340067
  Show dependency tree
 
Reported: 2012-09-17 12:00 EDT by Anatoly Spektor CLA
Modified: 2012-10-03 13:43 EDT (History)
0 users

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-09-17 12:00:20 EDT
GTK+ 3 migration  (http://developer.gnome.org/gtk3/3.0/ch25s02.html#id1255934) says that GdkRectangle is equal to cairo_rectangle_int_t, and some of the methods like  cairo_region_union_rectangle should use "casted" GdkRectangle directly.

  As we are not using pointer (int /*long*/) when we are dealing with GdkRectangle, ( if we use pointer we don't have access to its class variables (x,y,width,height)), it creates problems when trying to substitute GdkRectangle with cairo_rectangle_int_t.

 Even if we create new class "cairo_rectangle_int_t" inside "internal.cairo" , I don't we think we are able to cast GdkRectangle to cairo_rectangle_int_t.


 Anyone has any ideas how this issue can be approached ?

  Any help is appreciated.

 Thanks!

 Anatoly
Comment 1 Anatoly Spektor CLA 2012-10-03 13:43:20 EDT

*** This bug has been marked as a duplicate of bug 391050 ***