Community
Participate
Working Groups
This patches uses GTK+3 API method gtk_render_handle() instead of deprecated gtk_paint_handle() for GTK version 3.0 and higher: http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=gtk3_render_handle
This patch leaks a cairo context.
(In reply to comment #1) > This patch leaks a cairo context. Sorry for that ! Please refer to this revised patch: http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=gtk3_render_handle_64
Silenio, do you have other concerns regarding this patch? It looks good to me and there are a number of others similar. Once I get your OK on this one I'll proceed with committing the rest.
The patch is ok to be released, but at some point we need to start using the "draw" signal instead of the "expose-event" so that we do not have to create a cairo graphics for SWT.Paint and for the internal draw methods (drarGripper, drawBackground, etc). The "draw" signal provides a cairo graphics which should be used to draw the gripper instead of creating/disposing a new one.
I agree 100% and we will start looking into this once we can compile (hopefully run) against gtk3. I'll proceed with the commits now.
Pushed to master. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=41b28fb69b28913e45dadfb38d783336ab3b6dcc