[Libreoffice] [Patch] GTK+ integration

xapantu xapantu at gmail.com
Mon Jan 24 10:39:49 PST 2011


Hi,

I have just made a patch to fix some glitch with GTK+:
(see this bug: https://bugs.freedesktop.org//show_bug.cgi?id=32186)

- Fix menubar root items (they was disabled, but they work well :) )
- Don't draw anything when a disabled menu is hovered:
        They was drawn using the native GUI engine, which provided bad
        integration. GTK+ just don't react when we move the cursor on
        disabled menu items (at least, on most themes), so, we just draw
        nothing now. (and if we should, drawing nothing for disabled
        menu is better than draw a bad integration for a menu *which is
        not used*). 
- Fix background of GtkEntry/GtkSpinButton:
        gtk_paint_flat_box was used, just replace it by gtk_paint_box.
        gtk_paint_flat_box just draws a… flat rectangle, but the
        background can be rounded. So, on dark theme it could caused
        some glitchs (see screenshot).
- Fix GtkButton/GtkSpinButton background (and maybe some others
widget) :
        In the code, we redrew the background before drawing the
        widgets, because they could be transparent, but it wasn't the
        good style for the background (widgets background instead of
        window background).


Here is a screenshot I made for comparison:
https://bugs.freedesktop.org//attachment.cgi?id=42337


This patch belongs to the libs-gui branch, vcl module.


Lucas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libs-gui_gtk_integration_improvements.patch
Type: text/x-patch
Size: 5224 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110124/c9687a63/attachment.bin>


More information about the LibreOffice mailing list