| 844 | } |
| 845 | |
| 846 | static void |
| 847 | ghack_fade_highlighting() |
| 848 | { |
| 849 | GList *item; |
| 850 | Highlight *highlt; |
| 851 | |
| 852 | /* Remove any items from the queue if their time is up */ |
| 853 | for (item = g_list_first(s_HighLightList); item;) { |
| 854 | highlt = (Highlight *) item->data; |
| 855 | if (highlt) { |
| 856 | if (highlt->nTurnsLeft <= 0) { |
| 857 | gtk_widget_set_style(GTK_WIDGET(highlt->widget), |
| 858 | highlt->oldStyle); |
| 859 | s_HighLightList = g_list_remove_link(s_HighLightList, item); |
| 860 | g_free(highlt); |
| 861 | g_list_free_1(item); |
| 862 | item = g_list_first(s_HighLightList); |
| 863 | continue; |
| 864 | } else |
| 865 | (highlt->nTurnsLeft)--; |
| 866 | } |
| 867 | if (item) |
| 868 | item = item->next; |
| 869 | else |
| 870 | break; |
| 871 | } |
| 872 | } |
| 873 | |
| 874 | /* Widget changed, so add it to the highlighing list */ |
| 875 | static void |
nothing calls this directly
no outgoing calls
no test coverage detected