]> Pileus Git - ~andy/gtk/commitdiff
Add docs.
authorMatthias Clasen <matthiasc@src.gnome.org>
Wed, 18 Dec 2002 23:45:53 +0000 (23:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 18 Dec 2002 23:45:53 +0000 (23:45 +0000)
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/ChangeLog
docs/reference/gtk/tmpl/gtkcontainer.sgml
gtk/gtkwidget.c

index 990ac621307030b60324a4d96efe2ead95fd05ae..5591918525f2a1372ef6db3345abe7ab5602fc64 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-18  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkwidget.c: Add docs.
+
 Wed Dec 18 12:05:33 2002  Owen Taylor  <otaylor@redhat.com>
 
        * NEWS: Various name fixes.
index 990ac621307030b60324a4d96efe2ead95fd05ae..5591918525f2a1372ef6db3345abe7ab5602fc64 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-18  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkwidget.c: Add docs.
+
 Wed Dec 18 12:05:33 2002  Owen Taylor  <otaylor@redhat.com>
 
        * NEWS: Various name fixes.
index 990ac621307030b60324a4d96efe2ead95fd05ae..5591918525f2a1372ef6db3345abe7ab5602fc64 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-18  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkwidget.c: Add docs.
+
 Wed Dec 18 12:05:33 2002  Owen Taylor  <otaylor@redhat.com>
 
        * NEWS: Various name fixes.
index 990ac621307030b60324a4d96efe2ead95fd05ae..5591918525f2a1372ef6db3345abe7ab5602fc64 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-18  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkwidget.c: Add docs.
+
 Wed Dec 18 12:05:33 2002  Owen Taylor  <otaylor@redhat.com>
 
        * NEWS: Various name fixes.
index 990ac621307030b60324a4d96efe2ead95fd05ae..5591918525f2a1372ef6db3345abe7ab5602fc64 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-18  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkwidget.c: Add docs.
+
 Wed Dec 18 12:05:33 2002  Owen Taylor  <otaylor@redhat.com>
 
        * NEWS: Various name fixes.
index 990ac621307030b60324a4d96efe2ead95fd05ae..5591918525f2a1372ef6db3345abe7ab5602fc64 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-18  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkwidget.c: Add docs.
+
 Wed Dec 18 12:05:33 2002  Owen Taylor  <otaylor@redhat.com>
 
        * NEWS: Various name fixes.
index 598864fe034956a0c5b55f94c63a6dda846546fa..531ab5badf8a7ee3e497c092fb0db0f79edf8cbe 100644 (file)
@@ -1,6 +1,10 @@
+2002-12-18  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/tmpl/gtkcontainer.sgml: Add docs.
+
 2002-12-17  Matthias Clasen  <maclas@gmx.de>
 
-       * gtk/tmpl/gtkrc.sgml: Link to style properties.
+       * gtk/tmpl/gtkrc.sgml: Link to style properties. 
 
        * gtk/tmpl/gtkcontainer.sgml: Add bits about child properties.
 
index ccf1d0a7051875adf94e5b6e9b084ee13ad2b14e..c0ac78af81e3d5d98f1c3dddede421333f0b602a 100644 (file)
@@ -15,13 +15,16 @@ which is contained in a #GtkBox.</para>
 Use gtk_container_class_install_child_property() to install child properties 
 for a container class and gtk_container_class_find_child_property() or
 gtk_container_class_list_child_properties() to get information about existing
-child properties. To set the value of a child property, use
-gtk_container_child_set_property(), gtk_container_child_set() or
-gtk_container_child_set_valist(). To obtain the value of a child property,
-use gtk_container_child_get_property(), gtk_container_child_get() or
-gtk_container_child_get_valist(). 
+child properties.
+</para>
+<para>
+To set the value of a child property, use gtk_container_child_set_property(), 
+gtk_container_child_set() or gtk_container_child_set_valist(). 
+To obtain the value of a child property, use 
+gtk_container_child_get_property(), gtk_container_child_get() or
+gtk_container_child_get_valist(). To emit notification about child property 
+changes, use gtk_widget_child_notify().
 </para>
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
index 87940e2c7c90925519265c56486b2b209247bf88..71bf80ef78dba8551160025504d9d4cefbef82ee 100644 (file)
@@ -1361,6 +1361,15 @@ gtk_widget_dispatch_child_properties_changed (GtkWidget   *widget,
     g_signal_emit (widget, widget_signals[CHILD_NOTIFY], g_quark_from_string (pspecs[i]->name), pspecs[i]);
 }
 
+/**
+ * gtk_widget_freeze_child_notify:
+ * @widget: a #GtkWidget
+ * 
+ * Stops emission of "child-notify" signals on @widget. The signals are
+ * queued until gtk_widget_thaw_child_notify() is called on @widget. 
+ *
+ * This is the analogue of g_object_freeze_notify() for child properties.
+ **/
 void
 gtk_widget_freeze_child_notify (GtkWidget *widget)
 {
@@ -1374,6 +1383,18 @@ gtk_widget_freeze_child_notify (GtkWidget *widget)
   g_object_unref (widget);
 }
 
+/**
+ * gtk_widget_child_notify:
+ * @widget: a #GtkWidget
+ * @child_property: the name of a child property installed on the 
+ *                  class of @widget<!-- -->'s parent.
+ * 
+ * Emits a "child-notify" signal for the 
+ * <link linkend="child-properties">child property</link> @child_property 
+ * on @widget.
+ *
+ * This is the analogue of g_object_notify() for child properties.
+ **/
 void
 gtk_widget_child_notify (GtkWidget    *widget,
                         const gchar  *child_property)
@@ -1410,6 +1431,7 @@ gtk_widget_child_notify (GtkWidget    *widget,
  * @widget: a #GtkWidget
  *
  * Reverts the effect of a previous call to gtk_widget_freeze_child_notify().
+ * This causes all queued "child-notify" signals on @widget to be emitted.
  */ 
 void
 gtk_widget_thaw_child_notify (GtkWidget *widget)