Kaydet (Commit) bb2223e2 authored tarafından Miklos Vajna's avatar Miklos Vajna Kaydeden (comit) Caolán McNamara

gtk3: error: 'GTK_STATE_FLAG_CHECKED' was not declared in this scope

Seen with gtk3-3.10.9.

Change-Id: I0fc3f6187e270bb13d110bee7c817b5f48d4ce50
(cherry picked from commit a38f8c22)
üst 93701a53
...@@ -890,7 +890,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -890,7 +890,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
renderType = RENDER_CHECK; renderType = RENDER_CHECK;
nType = CTRL_CHECKBOX; nType = CTRL_CHECKBOX;
if (nState & ControlState::PRESSED) if (nState & ControlState::PRESSED)
flags = (GtkStateFlags)(flags | GTK_STATE_FLAG_CHECKED); flags = (GtkStateFlags)(flags | 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;
...@@ -898,7 +898,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co ...@@ -898,7 +898,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
renderType = RENDER_RADIO; renderType = RENDER_RADIO;
nType = CTRL_RADIOBUTTON; nType = CTRL_RADIOBUTTON;
if (nState & ControlState::PRESSED) if (nState & ControlState::PRESSED)
flags = (GtkStateFlags)(flags | GTK_STATE_FLAG_CHECKED); flags = (GtkStateFlags)(flags | 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