Kaydet (Commit) d6aa88c4 authored tarafından Caolán McNamara's avatar Caolán McNamara

gtk3: render menu radio buttons and checkboxes

Change-Id: Ic6a373fd3d809f7fc8b3d7f724be7a56383f3fa8
üst 9bc57ae7
...@@ -881,11 +881,17 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -881,11 +881,17 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
styleClass = GTK_STYLE_CLASS_CHECK; styleClass = GTK_STYLE_CLASS_CHECK;
context = mpMenuItemStyle; context = mpMenuItemStyle;
renderType = RENDER_CHECK; renderType = RENDER_CHECK;
nType = CTRL_CHECKBOX;
if (nState & ControlState::PRESSED)
flags = (GtkStateFlags)(flags | GTK_STATE_FLAG_CHECKED);
break; break;
case PART_MENU_ITEM_RADIO_MARK: case PART_MENU_ITEM_RADIO_MARK:
styleClass = GTK_STYLE_CLASS_RADIO; styleClass = GTK_STYLE_CLASS_RADIO;
context = mpMenuItemStyle; context = mpMenuItemStyle;
renderType = RENDER_RADIO; renderType = RENDER_RADIO;
nType = CTRL_RADIOBUTTON;
if (nState & ControlState::PRESSED)
flags = (GtkStateFlags)(flags | GTK_STATE_FLAG_CHECKED);
break; break;
case PART_MENU_SEPARATOR: case PART_MENU_SEPARATOR:
styleClass = GTK_STYLE_CLASS_SEPARATOR; styleClass = GTK_STYLE_CLASS_SEPARATOR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment