예제 #1
0
void Gobby::EntryDialog::set_check_valid_entry(bool enable)
{
	m_check_valid_entry = enable;
	// Call on_entry_changed to check whether the OK button has to
	// be sensitive or not
	on_entry_changed();
}
예제 #2
0
파일: gdmenu.c 프로젝트: haobug/gdmenu
void read_input(void)
{
	while (TRUE) {
		gchar buf[BUFSIZ];
		if (fgets(buf, BUFSIZ, stdin) == NULL)
			break;
		buf[strlen(buf) - 1] = '\0';

		input = g_slist_append(input, g_strdup(buf));
	}

	on_entry_changed();
}