pull up r19858 from trunk
authorTom Yu <tlyu@mit.edu>
Fri, 28 Sep 2007 23:37:22 +0000 (23:37 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 28 Sep 2007 23:37:22 +0000 (23:37 +0000)
 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

index 0d3f17fe50c43e0b63173136427e258e76a8f808..ed9cad735aa5e9f0b6af41ac717308674b7dc052 100644 (file)
@@ -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;