+2002-12-15 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcontainer.c (gtk_container_class_install_child_property):
+ (gtk_container_child_get_valist):
+ (gtk_container_child_get_property):
+ (gtk_container_child_set_valist):
+ (gtk_container_child_set_property):
+ (gtk_container_add_with_properties):
+ (gtk_container_child_set):
+ (gtk_container_child_get): Add docs.
+
+ * gtk/gtkwindow.c (gtk_window_activate_default):
+ (gtk_window_activate_focus): Add docs.
+
2002-12-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Made
+2002-12-15 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcontainer.c (gtk_container_class_install_child_property):
+ (gtk_container_child_get_valist):
+ (gtk_container_child_get_property):
+ (gtk_container_child_set_valist):
+ (gtk_container_child_set_property):
+ (gtk_container_add_with_properties):
+ (gtk_container_child_set):
+ (gtk_container_child_get): Add docs.
+
+ * gtk/gtkwindow.c (gtk_window_activate_default):
+ (gtk_window_activate_focus): Add docs.
+
2002-12-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Made
+2002-12-15 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcontainer.c (gtk_container_class_install_child_property):
+ (gtk_container_child_get_valist):
+ (gtk_container_child_get_property):
+ (gtk_container_child_set_valist):
+ (gtk_container_child_set_property):
+ (gtk_container_add_with_properties):
+ (gtk_container_child_set):
+ (gtk_container_child_get): Add docs.
+
+ * gtk/gtkwindow.c (gtk_window_activate_default):
+ (gtk_window_activate_focus): Add docs.
+
2002-12-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Made
+2002-12-15 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcontainer.c (gtk_container_class_install_child_property):
+ (gtk_container_child_get_valist):
+ (gtk_container_child_get_property):
+ (gtk_container_child_set_valist):
+ (gtk_container_child_set_property):
+ (gtk_container_add_with_properties):
+ (gtk_container_child_set):
+ (gtk_container_child_get): Add docs.
+
+ * gtk/gtkwindow.c (gtk_window_activate_default):
+ (gtk_window_activate_focus): Add docs.
+
2002-12-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Made
+2002-12-15 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcontainer.c (gtk_container_class_install_child_property):
+ (gtk_container_child_get_valist):
+ (gtk_container_child_get_property):
+ (gtk_container_child_set_valist):
+ (gtk_container_child_set_property):
+ (gtk_container_add_with_properties):
+ (gtk_container_child_set):
+ (gtk_container_child_get): Add docs.
+
+ * gtk/gtkwindow.c (gtk_window_activate_default):
+ (gtk_window_activate_focus): Add docs.
+
2002-12-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Made
+2002-12-15 Matthias Clasen <maclas@gmx.de>
+
+ * gtk/gtkcontainer.c (gtk_container_class_install_child_property):
+ (gtk_container_child_get_valist):
+ (gtk_container_child_get_property):
+ (gtk_container_child_set_valist):
+ (gtk_container_child_set_property):
+ (gtk_container_add_with_properties):
+ (gtk_container_child_set):
+ (gtk_container_child_get): Add docs.
+
+ * gtk/gtkwindow.c (gtk_window_activate_default):
+ (gtk_window_activate_focus): Add docs.
+
2002-12-14 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmenuitem.c (gtk_menu_item_position_menu): Made
g_value_unset (&tmp_value);
}
+/**
+ * gtk_container_child_get_valist:
+ * @container: a #GtkContainer
+ * @child: a widget which is a child of @container
+ * @first_prop_name: the name of the first property to get
+ * @va_list: a %NULL-terminated list of property names and #GValue*,
+ * starting with @first_prop_name.
+ *
+ * Gets the values of one or more child properties for @child and @container.
+ **/
void
gtk_container_child_get_valist (GtkContainer *container,
GtkWidget *child,
g_object_unref (container);
}
+/**
+ * gtk_container_child_get_property:
+ * @container: a #GtkContainer
+ * @child: a widget which is a child of @container
+ * @property_name: the name of the property to get
+ * @value: a location to return the value
+ *
+ * Gets the value of a child property for @child and @container.
+ **/
void
gtk_container_child_get_property (GtkContainer *container,
GtkWidget *child,
g_object_unref (container);
}
+/**
+ * gtk_container_child_set_valist:
+ * @container: a #GtkContainer
+ * @child: a widget which is a child of @container
+ * @first_prop_name: the name of the first property to set
+ * @va_list: a %NULL-terminated list of property names and values, starting
+ * with @first_prop_name.
+ *
+ * Sets one or more child properties for @child and @container.
+ **/
void
gtk_container_child_set_valist (GtkContainer *container,
GtkWidget *child,
g_object_unref (child);
}
+/**
+ * gtk_container_child_set_property:
+ * @container: a #GtkContainer
+ * @child: a widget which is a child of @container
+ * @property_name: the name of the property to set
+ * @value: the value to set the property to
+ *
+ * Sets a child property for @child and @container.
+ **/
void
gtk_container_child_set_property (GtkContainer *container,
GtkWidget *child,
g_object_unref (child);
}
+/**
+ * gtk_container_add_with_properties:
+ * @container: a #GtkContainer
+ * @widget: a widget to be placed inside @container
+ * @first_prop_name: the name of the first child property to set
+ * @Varargs: a %NULL-terminated list of property names and values, starting
+ * with @first_prop_name.
+ *
+ * Adds @widget to @container, setting child properties at the same time.
+ * See gtk_container_add() and gtk_container_child_set() for more details.
+ **/
void
gtk_container_add_with_properties (GtkContainer *container,
GtkWidget *widget,
g_object_unref (container);
}
+/**
+ * gtk_container_child_set:
+ * @container: a #GtkContainer
+ * @child: a widget which is a child of @container
+ * @first_prop_name: the name of the first property to set
+ * @Varargs: a %NULL-terminated list of property names and values, starting
+ * with @first_prop_name.
+ *
+ * Sets one or more child properties for @child and @container.
+ **/
void
gtk_container_child_set (GtkContainer *container,
GtkWidget *child,
va_end (var_args);
}
+/**
+ * gtk_container_child_get:
+ * @container: a #GtkContainer
+ * @child: a widget which is a child of @container
+ * @first_prop_name: the name of the first property to get
+ * @Varargs: a %NULL-terminated list of property names and #GValue*,
+ * starting with @first_prop_name.
+ *
+ * Gets the values of one or more child properties for @child and @container.
+ **/
void
gtk_container_child_get (GtkContainer *container,
GtkWidget *child,
va_end (var_args);
}
+/**
+ * gtk_container_class_install_child_property:
+ * @cclass: a #GtkContainerClass
+ * @property_id: the id for the property
+ * @pspec: the #GParamSpec for the property
+ *
+ * Installs a child property on a container class.
+ **/
void
gtk_container_class_install_child_property (GtkContainerClass *cclass,
guint property_id,
* gtk_container_class_list_child_properties:
* @cclass: a #GtkContainerClass
* @n_properties: location to return the number of child properties found
- * @returns: an newly allocated array of #GParamSpec*. The array must be freed with g_free().
+ * @returns: a newly allocated array of #GParamSpec*. The array must be
+ * freed with g_free().
*
* Returns all child properties of a container class.
*/
g_object_notify (G_OBJECT (window), "window_position");
}
+/**
+ * gtk_window_activate_focus:
+ * @window: a #GtkWindow
+ *
+ * Activates the current focused widget within the window.
+ *
+ * Return value: %TRUE if a widget got activated.
+ **/
gboolean
gtk_window_activate_focus (GtkWindow *window)
{
return window->focus_widget;
}
+/**
+ * gtk_window_activate_default:
+ * @window: a #GtkWindow
+ *
+ * Activates the default widget for the window, unless the current
+ * focused widget has been configured to receive the default action
+ * (see #GTK_RECEIVES_DEFAULT in #GtkWidgetFlags), in which case the
+ * focused widget is activated.
+ *
+ * Return value: %TRUE if a widget got activated.
+ **/
gboolean
gtk_window_activate_default (GtkWindow *window)
{