diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-09-24 14:33:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:50 +0100 |
commit | fba475ecfd4061b005f268bf98a904223bb5472e (patch) | |
tree | 56e0aa087a2169d68ec4e3508c24e3ad83a309dd /cui/source/tabpages/chardlg.cxx | |
parent | 4799e8d50e5220b85572625f2741a592fd9cf3f8 (diff) |
adjust combobox GetOptimalSize
Change-Id: Ifeaf6bbc57b57800853eef9657f646b1447f2add
Diffstat (limited to 'cui/source/tabpages/chardlg.cxx')
-rw-r--r-- | cui/source/tabpages/chardlg.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/tabpages/chardlg.cxx b/cui/source/tabpages/chardlg.cxx index 6536973b89ec..a2ac623cfaab 100644 --- a/cui/source/tabpages/chardlg.cxx +++ b/cui/source/tabpages/chardlg.cxx @@ -281,9 +281,9 @@ namespace { void equalize_width_requests(Window *pA, Window *pB, Window *pC) { - long nWidthWest = pA->GetOptimalSize(WINDOWSIZE_PREFERRED).Width(); - long nWidthEast = pB->GetOptimalSize(WINDOWSIZE_PREFERRED).Width(); - long nWidthCTL = pC->GetOptimalSize(WINDOWSIZE_PREFERRED).Width(); + long nWidthWest = pA->get_preferred_size().Width(); + long nWidthEast = pB->get_preferred_size().Width(); + long nWidthCTL = pC->get_preferred_size().Width(); long nLargest = std::max(nWidthWest, std::max(nWidthEast, nWidthCTL)); pA->set_width_request(nLargest); pB->set_width_request(nLargest); |