Mercurial > dwindows
comparison gtk/dw.c @ 19:3e5bff3e55ff
Fixed a problem in dw_listbox_selected().
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 19 Jul 2001 01:09:24 +0000 |
parents | f26eced21a30 |
children | 6a246b3bb14f |
comparison
equal
deleted
inserted
replaced
18:f1002d51d959 | 19:3e5bff3e55ff |
---|---|
3934 { | 3934 { |
3935 int counter = 0; | 3935 int counter = 0; |
3936 GList *list = GTK_LIST(handle2)->children; | 3936 GList *list = GTK_LIST(handle2)->children; |
3937 while(list) | 3937 while(list) |
3938 { | 3938 { |
3939 if(list == GTK_LIST(handle2)->selection) | 3939 if(list->data == GTK_LIST(handle2)->selection->data) |
3940 { | 3940 { |
3941 retval = counter; | 3941 retval = counter; |
3942 break; | 3942 break; |
3943 } | 3943 } |
3944 | 3944 |