gtk+ r20515 - trunk/gtk



Author: timj
Date: Fri Jun 20 11:00:12 2008
New Revision: 20515
URL: http://svn.gnome.org/viewvc/gtk+?rev=20515&view=rev

Log:
* gtk/gtkcontainer.c (gtk_container_get_focus_child): add accessor.


Modified:
   trunk/gtk/gtk.symbols
   trunk/gtk/gtkcontainer.c

Modified: trunk/gtk/gtk.symbols
==============================================================================
--- trunk/gtk/gtk.symbols	(original)
+++ trunk/gtk/gtk.symbols	Fri Jun 20 11:00:12 2008
@@ -920,6 +920,7 @@
 gtk_container_get_border_width
 gtk_container_get_children
 gtk_container_get_focus_chain
+gtk_container_get_focus_child
 gtk_container_get_focus_hadjustment
 gtk_container_get_focus_vadjustment
 gtk_container_get_resize_mode

Modified: trunk/gtk/gtkcontainer.c
==============================================================================
--- trunk/gtk/gtkcontainer.c	(original)
+++ trunk/gtk/gtkcontainer.c	Fri Jun 20 11:00:12 2008
@@ -1559,6 +1559,14 @@
   g_signal_emit (container, container_signals[SET_FOCUS_CHILD], 0, widget);
 }
 
+GtkWidget *
+gtk_container_get_focus_child (GtkContainer *container)
+{
+  g_return_val_if_fail (GTK_IS_CONTAINER (container), NULL);
+
+  return container->focus_child;
+}
+
 /**
  * gtk_container_get_children:
  * @container: a #GtkContainer



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]