tText in multi-column gtk_clists under Win32 is now terminated "nicely" with an… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 59957ad5d66dac73994dc02342928a4562049126 | |
parent a7eeb732e352a37be7062755c0a95b2e886ed70d | |
Author: Ben Webb <[email protected]> | |
Date: Thu, 14 Feb 2002 16:54:03 +0000 | |
Text in multi-column gtk_clists under Win32 is now terminated "nicely" with | |
an ellipsis if it's too long to fit in a column | |
Diffstat: | |
M src/gtkport.c | 6 ++++-- | |
1 file changed, 4 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/gtkport.c b/src/gtkport.c | |
t@@ -2314,8 +2314,10 @@ void gtk_clist_draw_row(GtkCList *clist,LPDRAWITEMSTRUC… | |
if (rcCol.left > lpdis->rcItem.right) rcCol.left=lpdis->rcItem.right; | |
if (rcCol.right > lpdis->rcItem.right) rcCol.right=lpdis->rcItem.righ… | |
if (i==clist->ncols-1) rcCol.right=lpdis->rcItem.right; | |
- if (row->text[i]) DrawText(lpdis->hDC,row->text[i],-1,&rcCol, | |
- DT_LEFT|DT_SINGLELINE|DT_VCENTER); | |
+ if (row->text[i]) { | |
+ DrawText(lpdis->hDC,row->text[i],-1,&rcCol, | |
+ DT_LEFT|DT_SINGLELINE|DT_VCENTER|DT_END_ELLIPSIS); | |
+ } | |
} | |
} | |