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

gtk3: seperate calcs for lists, comboboxes and editboxes

Change-Id: I38d5582e36fda2471a53e48f0611011bef30f5fe
üst 37bb1079
...@@ -1091,10 +1091,18 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar ...@@ -1091,10 +1091,18 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar
{ {
aEditRect = NWGetComboBoxButtonRect( nType, nPart, rControlRegion ); aEditRect = NWGetComboBoxButtonRect( nType, nPart, rControlRegion );
} }
else if ((nType == CTRL_EDITBOX || nType == CTRL_LISTBOX || nType == CTRL_COMBOBOX) && nPart == PART_ENTIRE_CONTROL) else if (nType == CTRL_EDITBOX && nPart == PART_ENTIRE_CONTROL)
{ {
aEditRect = AdjustRectForTextBordersPadding(mpEntryStyle, rValue.getNumericVal(), rControlRegion); aEditRect = AdjustRectForTextBordersPadding(mpEntryStyle, rValue.getNumericVal(), rControlRegion);
} }
else if (nType == CTRL_LISTBOX && nPart == PART_ENTIRE_CONTROL)
{
aEditRect = AdjustRectForTextBordersPadding(mpListboxStyle, rValue.getNumericVal(), rControlRegion);
}
else if (CTRL_COMBOBOX && nPart == PART_ENTIRE_CONTROL)
{
aEditRect = AdjustRectForTextBordersPadding(mpComboboxStyle, rValue.getNumericVal(), rControlRegion);
}
else else
{ {
return false; return false;
......
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