Re: gtkentry
- From: James Henstridge <james daa com au>
- To: Martin Oberzalek <oberzalek chello at>
- cc: gnome-devel-list gnome org
- Subject: Re: gtkentry
- Date: Wed, 10 Nov 1999 22:09:44 +0800 (WST)
The activate signal on the GtkEntry will be emitted when return is
pressed.
James.
--
Email: james@daa.com.au
WWW: http://www.daa.com.au/~james/
On Wed, 10 Nov 1999, Martin Oberzalek wrote:
>
> 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 |
> ------------------------
>
>
> --
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]