Re: gtk programming question
- From: bob kehs ksd org
- To: James Henstridge <james daa com au>
- cc: "Fox, Kevin M" <KMFox mail bhi-erc com>, "'gnome-list gnome org'" <gnome-list gnome org>, recipient list not shown: ;
- Subject: Re: gtk programming question
- Date: Thu, 27 May 1999 18:38:59 -0700 (PDT)
That did the trick. Thanks. :)
On Fri, 28 May 1999, James Henstridge wrote:
> You probably want gtk_widget_grab_focus(). If the event that should give
> the entry focus also moves the focus, you could try using an idle function
> like this:
> gboolean give_focus(gpointer data) {
> GtkWidget *widget = GTK_WIDGET(data);
>
> gtk_widget_grab_focus(widget);
> return FALSE;
> }
>
> James.
>
> --
> Email: james@daa.com.au
> WWW: http://www.daa.com.au/~james/
>
>
> On Thu, 27 May 1999, Fox, Kevin M wrote:
>
> > I have an text entry box in my program. I would like to set focus to it when
> > a button is pressed. What function do I use to give the entry widget focus?
> >
> >
> > --
> > FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
> > To unsubscribe: mail gnome-list-request@gnome.org with
> > "unsubscribe" as the Subject.
> >
>
>
> --
> FAQ: Frequently-Asked Questions at http://www.gnome.org/gnomefaq
> To unsubscribe: mail gnome-list-request@gnome.org with
> "unsubscribe" as the Subject.
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]