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.
This commit is contained in:
		| @ -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 */ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Tim Janik
					Tim Janik