diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-27 13:20:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-27 17:12:07 +0100 |
commit | 15e88c27440b1bcebf5aa09ab36635e4e977a438 (patch) | |
tree | 50bb03777768fb7843f5a1e756c09d5fee767f16 /vcl/unx | |
parent | 37bb10790847bb2088e7f29211a31b1118fed2ad (diff) |
gtk3: seperate calcs for lists, comboboxes and editboxes
Change-Id: I38d5582e36fda2471a53e48f0611011bef30f5fe
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index 355e2b2bcb21..666eaf6cb006 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -1091,10 +1091,18 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar { 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); } + 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 { return false; |