From ba72e8a6413bde9db2f4ad476759c4238b1a62ce Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 28 Sep 2007 23:37:22 +0000 Subject: [PATCH] pull up r19858 from trunk r19858@cathode-dark-space: jaltman | 2007-08-24 10:34:30 -0400 ticket: new subject: NIM: do not permit resizing of filler columns component: windows The credentials display of Network Identity Manager allows the user to change the order and size of the displayed columns. However, some columns are not resizable. An oversight in the earlier code allowed the user to change the size of "filler" columns. These columns are sized to fill up the remainder of the display area after the other columns have been allocated. Their width is determined by the size of the credentials display and the width of the other columns. They are used in the basic view where the only columns are the flags column (fixed width) and the identity column (filler). This patch prevents the "filler" columns (columns with the KHUI_CW_COL_FILLER flag) from being resized. ticket: 5679 version_fixed: 1.6.3 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19993 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/identity/ui/credwnd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/windows/identity/ui/credwnd.c b/src/windows/identity/ui/credwnd.c index 0d3f17fe5..ed9cad735 100644 --- a/src/windows/identity/ui/credwnd.c +++ b/src/windows/identity/ui/credwnd.c @@ -2697,7 +2697,8 @@ cw_handle_header_msg(khui_credwnd_tbl * tbl, LPNMHEADER ph) { hi.mask = HDI_ORDER; Header_GetItem(tbl->hwnd_header, ph->iItem, &hi); - if(tbl->cols[hi.iOrder].flags & KHUI_CW_COL_FIXED_WIDTH) + if (tbl->cols[hi.iOrder].flags & (KHUI_CW_COL_FIXED_WIDTH | + KHUI_CW_COL_FILLER)) return TRUE; else return FALSE; -- 2.26.2