Mercurial > dwindows
diff gtk/dw.c @ 1322:3f1ac800bf65
Initial fix for being able to do container string comparisons instead of pointer on all platforms.
Improved on the GTK2 change earlier... where it would do both comparisons with string enabled.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 06 Nov 2011 12:13:13 +0000 |
parents | 7630404386be |
children | e4ef8d86dfc4 |
line wrap: on
line diff
--- a/gtk/dw.c Sun Nov 06 11:48:24 2011 +0000 +++ b/gtk/dw.c Sun Nov 06 12:13:13 2011 +0000 @@ -7564,7 +7564,7 @@ for(z=0;z<rowcount;z++) { rowdata = gtk_clist_get_row_data(GTK_CLIST(clist), z); - if ( (textcomp && rowdata && strcmp(rowdata, text) == 0) || rowdata == text ) + if ( (textcomp && rowdata && strcmp(rowdata, text) == 0) || (!textcomp && rowdata == text) ) { gfloat pos; GtkAdjustment *adj = gtk_clist_get_vadjustment(GTK_CLIST(clist)); @@ -7610,7 +7610,7 @@ for(z=0;z<rowcount;z++) { rowdata = gtk_clist_get_row_data(GTK_CLIST(clist), z); - if ( (textcomp && rowdata && strcmp(rowdata, text) == 0) || rowdata == text ) + if ( (textcomp && rowdata && strcmp(rowdata, text) == 0) || (!textcomp && rowdata == text) ) { _dw_unselect(clist);