68 const char *text,
const char *postinputtest,
72 GtkWidget *
shell, *label, *input;
78 shell = gtk_dialog_new_with_buttons(dialogname,
80 GTK_DIALOG_DESTROY_WITH_PARENT,
81 _(
"_Cancel"), GTK_RESPONSE_CANCEL,
82 _(
"_OK"), GTK_RESPONSE_OK,
84 gtk_dialog_set_default_response(GTK_DIALOG(
shell), GTK_RESPONSE_OK);
89 label = gtk_frame_new(text);
90 gtk_box_insert_child_after(GTK_BOX(gtk_dialog_get_content_area(GTK_DIALOG(
shell))),
93 input = gtk_entry_new();
94 gtk_frame_set_child(GTK_FRAME(label), input);
95 gtk_entry_buffer_set_text(gtk_entry_get_buffer(GTK_ENTRY(input)), postinputtest, -1);
96 gtk_entry_set_activates_default(GTK_ENTRY(input),
TRUE);
97 g_object_set_data(G_OBJECT(
shell),
"iinput", input);
99 gtk_widget_show(GTK_WIDGET(
shell));
100 gtk_window_present(GTK_WINDOW(
shell));