tAdd extra padding to clist columns so that column headers are not truncated wh… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 54a39cd5c301e2e26be8cd0b9899aeaaab54176b | |
parent 95b7df091125a4c0c86061013f44a3a7da85e59e | |
Author: Ben Webb <[email protected]> | |
Date: Mon, 26 Aug 2002 12:39:44 +0000 | |
Add extra padding to clist columns so that column headers are not truncated | |
when using Windows XP common controls. | |
Diffstat: | |
M src/gtkport/clist.c | 8 ++++---- | |
1 file changed, 4 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/src/gtkport/clist.c b/src/gtkport/clist.c | |
t@@ -329,8 +329,8 @@ void gtk_clist_update_all_widths(GtkCList *clist) | |
if (header) | |
for (i = 0; i < clist->cols; i++) { | |
if (GetTextSize(header, clist->coldata[i].title, &size, defFont) && | |
- clist->coldata[i].width < size.cx + 2 * LISTHEADERPACK) { | |
- clist->coldata[i].width = size.cx + 2 * LISTHEADERPACK; | |
+ clist->coldata[i].width < size.cx + 4 + 2 * LISTHEADERPACK) { | |
+ clist->coldata[i].width = size.cx + 4 + 2 * LISTHEADERPACK; | |
} | |
} | |
t@@ -355,8 +355,8 @@ void gtk_clist_update_widths(GtkCList *clist, gchar *text[… | |
for (i = 0; i < clist->cols; i++) { | |
if (clist->coldata[i].auto_resize | |
&& GetTextSize(hWnd, text[i], &size, defFont) | |
- && size.cx + 2 * LISTITEMHPACK > clist->coldata[i].width) { | |
- clist->coldata[i].width = size.cx + 2 * LISTITEMHPACK; | |
+ && size.cx + 4 + 2 * LISTITEMHPACK > clist->coldata[i].width) { | |
+ clist->coldata[i].width = size.cx + 4 + 2 * LISTITEMHPACK; | |
} | |
} | |
} |