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(); }
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(); }