[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara caolanm at redhat.com
Thu Mar 12 08:52:02 PDT 2015


 vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit aa9413d9b44e7d38d13e7bb1605343cb1de367d3
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Mar 12 15:51:20 2015 +0000

    make selected gtk3 menu entries visible under default f21 theme
    
    Change-Id: I7c7043dcc085e7cf31a973929c32c2ebada841b5

diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index dcd1051..3006d62 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -835,6 +835,11 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
         }
         break;
     case CTRL_MENU_POPUP:
+
+        // map selected menu entries in vcl parlance to gtk prelight
+        if (nPart >= PART_MENU_ITEM && nPart <= PART_MENU_SUBMENU_ARROW && (nState & ControlState::SELECTED))
+            flags = (GtkStateFlags) (flags | GTK_STATE_FLAG_PRELIGHT);
+
         switch(nPart)
         {
         case PART_MENU_ITEM:


More information about the Libreoffice-commits mailing list