MCPcopy Create free account
hub / github.com/NetHack/NetHack / ghack_fade_highlighting

Function ghack_fade_highlighting

outdated/win/gnome/gnstatus.c:846–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844}
845
846static void
847ghack_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 */
875static void

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected