if (entryHandle != 0) OS.gtk_widget_modify_text (entryHandle, 0, color); if (listHandle != 0) { OS.gtk_widget_modify_text (listHandle, 0, color); int  itemsList = OS.gtk_container_get_children (listHandle); if (itemsList != 0) { int count = OS.g_list_length (itemsList); for (int i=count - 1; i>=0; i--) { int  widget = OS.gtk_bin_get_child (OS.g_list_nth_data (itemsList, i)); OS.gtk_widget_modify_fg (widget,  OS.GTK_STATE_NORMAL, color);
if (OS.GTK_VERSION >= OS.VERSION (2, 4, 0)) { if (entryHandle != 0) OS.gtk_widget_modify_text (entryHandle, 0, color); OS.g_object_set (textRenderer, OS.foreground_gdk, color, 0); } else { OS.gtk_widget_modify_text (entryHandle, 0, color); if (listHandle != 0) { OS.gtk_widget_modify_text (listHandle, 0, color); int  itemsList = OS.gtk_container_get_children (listHandle); if (itemsList != 0) { int count = OS.g_list_length (itemsList); for (int i=count - 1; i>=0; i--) { int  widget = OS.gtk_bin_get_child (OS.g_list_nth_data (itemsList, i)); OS.gtk_widget_modify_fg (widget,  OS.GTK_STATE_NORMAL, color); } OS.g_list_free (itemsList);
void setForegroundColor (GdkColor color) {	super.setForegroundColor (color);	if (entryHandle != 0) OS.gtk_widget_modify_text (entryHandle, 0, color);	if (listHandle != 0) {		OS.gtk_widget_modify_text (listHandle, 0, color);		int /*long*/ itemsList = OS.gtk_container_get_children (listHandle);		if (itemsList != 0) {			int count = OS.g_list_length (itemsList);			for (int i=count - 1; i>=0; i--) {				int /*long*/ widget = OS.gtk_bin_get_child (OS.g_list_nth_data (itemsList, i));				OS.gtk_widget_modify_fg (widget,  OS.GTK_STATE_NORMAL, color);			}			OS.g_list_free (itemsList);		}	}}