diff options
author | Tim Janik <timj@gtk.org> | 1998-05-03 15:45:08 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-05-03 15:45:08 +0000 |
commit | 19bbe0557f255fe37c19666f434705295a71d750 (patch) | |
tree | 4cae67475368b72c7b73615fb01d17a78dd5127e /gtk/gtkcontainer.h | |
parent | 2ca03393f56cb2bcae28a35c48f0dec1a725ae73 (diff) | |
download | gtk+-19bbe0557f255fe37c19666f434705295a71d750.tar.gz |
new function to set the current focus_child of a container, does proper
Sun May 3 16:55:43 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.c (gtk_container_set_focus_child): new function to
set the current focus_child of a container, does proper referencing and
adjusts the vadjustment/hadjustment associated with the focus widget.
* gtk/gtkwidget.c (gtk_widget_grab_focus): set the focused child on
containers via gtk_container_set_focus_child.
* gtk/gtknotebook.c: modifications to use gtk_container_set_focus_child
where appropriate.
* gtk/gtkcontainer.c (gtk_container_remove): removed unsetting of focus
child since not every child removal goes through this function (this
showed up after gtk_container_set_focus_child() started to reference the
focus_child of a container).
* gtk/gtkwidget.c (gtk_widget_unparent): moved unsetting the focus_child
of a container from gtk_container_remove into this place.
Diffstat (limited to 'gtk/gtkcontainer.h')
-rw-r--r-- | gtk/gtkcontainer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcontainer.h b/gtk/gtkcontainer.h index a07a8b9f1e..78bd37dcb3 100644 --- a/gtk/gtkcontainer.h +++ b/gtk/gtkcontainer.h @@ -105,6 +105,8 @@ void gtk_container_register_toplevel (GtkContainer *container); void gtk_container_unregister_toplevel (GtkContainer *container); gint gtk_container_focus (GtkContainer *container, GtkDirectionType direction); +void gtk_container_set_focus_child (GtkContainer *container, + GtkWidget *child); void gtk_container_set_focus_vadjustment (GtkContainer *container, GtkAdjustment *adjustment); void gtk_container_set_focus_hadjustment (GtkContainer *container, @@ -114,7 +116,6 @@ void gtk_container_set_focus_hadjustment (GtkContainer *container, - #ifdef __cplusplus } #endif /* __cplusplus */ |