[PATCH] gtk: listbox border was not rendered

Ivan Timofeev timofeev.i.s at gmail.com
Sat Jul 28 05:51:33 PDT 2012

Hi Ruslan,

On 28.07.2012 15:08, Ruslan Kabatsayev wrote:
> This mostly looks good, but breaks a bit border for oxygen-gtk

I have just installed it, yeah - it is broken... :(

>(which somehow has worked before the patch, unlike other themes).


> I'd suggest using getFrameWidth() to adjust the shadow rect.

AFAICS vcl makes listbox a child of borderwindow, which receives the 
border sizes via DecorationView::DrawFrame:
(for oxygen-gtk it is 2 for each border);

shrinks the listbox size by that border in Resize():

draws CTRL_LISTBOX PART_WINDOW (i.e. calls gtk_paint_shadow with 
"scrolled_window") with its size (i.e. client+borders):

Try to build with my patch and the attached diff applied, IMHO LibO will 
do things right. But probably I missed something (as usual :).

> OTOH, we've done quite some customizations in oxygen-gtk before to
> make it look better with LibO, so maybe this is what should be changed
> on oxygen-gtk side.

It would be great if you could check it. :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: black-border-treelistbox.diff
Type: text/x-diff
Size: 909 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20120728/51159ae5/attachment.diff>

More information about the LibreOffice mailing list