gtkentry
- From: Martin Oberzalek <oberzalek chello at>
- To: gnome-devel-list gnome org
- Subject: gtkentry
- Date: Wed, 10 Nov 1999 14:39:08 +0100 (MET)
I have following Problem:
I want that a user can tip text in an entry-widget, and when
pressing "return" on the keyboard, that my programm gets a signal.
I tried to add a simple button and "grabed" it, but that doesn't
work. So what can I do?
I tried it this way:
entry = gtk_entry_new();
button = gtk_button_new_with_label("ask");
gtk_signal_connect(GTK_OBJECT(button),"clicked",
GTK_SIGNAL_FUNC(InputText), (gpointer) entry);
GTK_WIDGET_SET_FLAGS( button, GTK_CAN_DEFAULT);
gtk_widget_grab_default(button);
Gruß King Leo
------------------------
| (__) (__) (__) |
| ( oo (oo) oo ) |
| /_| /\/\ |_/\ |
------------------------
| The Cow is with me |
------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]