GTK Text Entries GTK Text Entries (gtk_entry, defined in gtkentry.h) are used to allow the user to type a single line of text. Here are some ways to play with them: /* create a new text entry. */ GtkWidget* entry = gtk_entry_new_with_max_length(20); /* insert the following text into the text entry, as */ /* its initial value. */ gtk_entry_set_text(GTK_ENTRY(entry), "hello there"); /* print the contents of the text entry. */ printf("Entry: '%s'\n", gtk_entry_get_text(GTK_ENTRY(entry))); /* disable any further editing of the text entry. */ gtk_entry_set_editable(GTK_ENTRY(entry), FALSE); The window would look like this: