vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit d6aa88c48ae3e2076cd1f158d84a08e88c3392c1 Author: Caolán McNamara <caol...@redhat.com> Date: Fri Jun 19 10:44:25 2015 +0100 gtk3: render menu radio buttons and checkboxes Change-Id: Ic6a373fd3d809f7fc8b3d7f724be7a56383f3fa8 diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index 09bfac5..562016f 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -881,11 +881,17 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co styleClass = GTK_STYLE_CLASS_CHECK; context = mpMenuItemStyle; renderType = RENDER_CHECK; + nType = CTRL_CHECKBOX; + if (nState & ControlState::PRESSED) + flags = (GtkStateFlags)(flags | GTK_STATE_FLAG_CHECKED); break; case PART_MENU_ITEM_RADIO_MARK: styleClass = GTK_STYLE_CLASS_RADIO; context = mpMenuItemStyle; renderType = RENDER_RADIO; + nType = CTRL_RADIOBUTTON; + if (nState & ControlState::PRESSED) + flags = (GtkStateFlags)(flags | GTK_STATE_FLAG_CHECKED); break; case PART_MENU_SEPARATOR: styleClass = GTK_STYLE_CLASS_SEPARATOR;
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits