+Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
+ gtk_window_get_focus() getter to determine the currently
+ focused widget within the window. (#63145, request
+ from Damian Ivereigh)
+
Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
* gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
the focus to the fileop entry for create dir / rename
- file.
+ file. (#62838)
Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
+Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
+ gtk_window_get_focus() getter to determine the currently
+ focused widget within the window. (#63145, request
+ from Damian Ivereigh)
+
Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
* gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
the focus to the fileop entry for create dir / rename
- file.
+ file. (#62838)
Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
+Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
+ gtk_window_get_focus() getter to determine the currently
+ focused widget within the window. (#63145, request
+ from Damian Ivereigh)
+
Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
* gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
the focus to the fileop entry for create dir / rename
- file.
+ file. (#62838)
Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
+Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
+ gtk_window_get_focus() getter to determine the currently
+ focused widget within the window. (#63145, request
+ from Damian Ivereigh)
+
Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
* gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
the focus to the fileop entry for create dir / rename
- file.
+ file. (#62838)
Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
+Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
+ gtk_window_get_focus() getter to determine the currently
+ focused widget within the window. (#63145, request
+ from Damian Ivereigh)
+
Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
* gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
the focus to the fileop entry for create dir / rename
- file.
+ file. (#62838)
Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
+Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
+ gtk_window_get_focus() getter to determine the currently
+ focused widget within the window. (#63145, request
+ from Damian Ivereigh)
+
Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
* gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
the focus to the fileop entry for create dir / rename
- file.
+ file. (#62838)
Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
+Wed Oct 31 15:38:14 2001 Owen Taylor <otaylor@redhat.com>
+
+ * gtk/gtkwindow.[ch] (gtk_window_get_focus): Add a
+ gtk_window_get_focus() getter to determine the currently
+ focused widget within the window. (#63145, request
+ from Damian Ivereigh)
+
Wed Oct 31 14:45:08 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkenums.h (enum): Add GTK_SELECTION_NONE enum, #61695
* gtk/gtkfilesel.c (gtk_file_selection_rename_file): Grab
the focus to the fileop entry for create dir / rename
- file.
+ file. (#62838)
Mon Oct 29 12:21:49 2001 Owen Taylor <otaylor@redhat.com>
return FALSE;
}
+/**
+ * gtk_window_get_focus:
+ * @window: a #GtkWindow
+ *
+ * Retrieves the current focused widget within the window.
+ * Note that this is the widget that would have the focus
+ * if the toplevel window focused; if the toplevel window
+ * is not focused the GTK_WIDGET_HAS_FOCUS(widget) will
+ * not be %TRUE for the widget.
+ *
+ * Return value: the currently focused widget.
+ **/
+GtkWidget *
+gtk_window_get_focus (GtkWindow *window)
+{
+ g_return_val_if_fail (GTK_IS_WINDOW (window), NULL);
+
+ return window->focus_widget;
+}
+
gboolean
gtk_window_activate_default (GtkWindow *window)
{
void gtk_window_set_position (GtkWindow *window,
GtkWindowPosition position);
gboolean gtk_window_activate_focus (GtkWindow *window);
+GtkWidget *gtk_window_get_focus (GtkWindow *window);
gboolean gtk_window_activate_default (GtkWindow *window);
void gtk_window_set_transient_for (GtkWindow *window,