Community
Participate
Working Groups
Sash widget's drawBand() method needs Cairo implementation instead of existing Gdk methods, as most of them are deprecated.
I have started working on implementing Cairo in Sash widget, however I am having problem with GTK.INCLUDE_INFERIORS. I have tried finding way around INCLUDE_INFERIORS by making one surface reference another like this: int /*long*/ cairo_new = OS.gdk_cairo_create(window); int /*long*/ srcSurface = Cairo.cairo_get_target(cairo_new); int /*long*/ cairo = Cairo.cairo_create(srcSurface); Advantage of this is way is that it does draw on top of handle. Disadvantage is that when I try to change color of Sash, it changes color of handle itself. At this point, I am not sure how else, to avoid it. If you would like to take a look at my working progress please take a look here: http://fedorapeople.org/cgit/aspektor/public_git/eclipse.platform.swt.git/commit/?h=cairo_sash Any help is highly appreciated, Regards, Anatoly
Non SWT.SMOOTH Sash is a thing from the past. Added a check to make all sashes SWT.SMOOTH when USE_CAIRO is true. This also happens on cocoa. http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=b544cc1a498de3fd0b2af24bb1c30ba1978244fd
(In reply to comment #2) > Non SWT.SMOOTH Sash is a thing from the past. Added a check to make all > sashes SWT.SMOOTH when USE_CAIRO is true. This also happens on cocoa. > > http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/ > ?id=b544cc1a498de3fd0b2af24bb1c30ba1978244fd Is drawBand() still in use ? If it is so, this patch does not solve the problem, problem is that GTK deprecated methods are used in drawBand. or am I missing something here?
Sash.drawBand() returns in first line if GTK_VERSION>=2.24, since SWT.SMOOTH is set in style.
(In reply to comment #4) > Sash.drawBand() returns in first line if GTK_VERSION>=2.24, since SWT.SMOOTH > is set in styl True, now I see this line, my bad!