Re: how to get current focus widget
- From: Owen Taylor <otaylor redhat com>
- To: manu aradhya <manu_aradhya yahoo co in>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: how to get current focus widget
- Date: Fri, 26 Sep 2003 08:07:59 -0400
On Fri, 2003-09-26 at 01:44, manu aradhya wrote:
hi i have set of widgets in a page of a notebook, when
page is going to change i want to know which widget
has the focus,so i can set it back when i will come to
that page agian. how to get the current focused
widget?.
GTK+ automatically manages the focus widget for GtkNotebook;
it remembers the focus widget when appropriate (e.g.,
when switching pages with the keyboard), and doesn't when
it isn't appropriate (e.g., when selecting pages by clicking
with the mouse)
If you do something different, you will be inconsistent with
other GTK+ programs and cause confusion for your users.
That being said,
GtkWidget *gtk_window_get_focus (GtkWindow *window);
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]