]> Pileus Git - ~andy/gtk/commitdiff
Doc fixes
authorMatthias Clasen <matthiasc@src.gnome.org>
Mon, 21 Jul 2008 23:23:41 +0000 (23:23 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 21 Jul 2008 23:23:41 +0000 (23:23 +0000)
svn path=/trunk/; revision=20887

ChangeLog
gtk/gtkaccelgroup.c
gtk/gtkcolorseldialog.c
gtk/gtkcontainer.c
gtk/gtkentry.c
gtk/gtkfontsel.c
gtk/gtkmenu.c
gtk/gtkmessagedialog.c
gtk/gtkscalebutton.c
gtk/gtktestutils.c

index c3aeac9da527fc881c6d796c60e165b52d9cc1da..38e12ddb311197178703285d1f008013eaf7480d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2008-07-21  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtktestutils.c:
+       * gtk/gtkscalebutton.c:
+       * gtk/gtkmessagedialog.c:
+       * gtk/gtkmenu.c:
+       * gtk/gtkcontainer.c:
+       * gtk/gtkcolorseldialog.c:
+       * gtk/gtkaccelgroup.c:
+       * gtk/gtkentry.c:
+       * gtk/gtkfontsel.c: Fix some doc problems.
+
 2008-07-21  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkbox.c (gtk_box_add): use gtk_box_pack_start() instead of
index 0dbf810c75eb0b3d7219d120e260ce6eaebaa8fb..0e0457f5cf8ed40b129eac6c4149e02e1e2567a7 100644 (file)
@@ -220,12 +220,12 @@ gtk_accel_group_new (void)
  * gtk_accel_group_get_is_locked:
  * @accel_group: a #GtkAccelGroup
  *
- * @returns: %TRUE if there are 1 or more locks on the @accel_group,
- * %FALSE otherwise.
- *
  * Locks are added and removed using gtk_accel_group_lock() and
  * gtk_accel_group_unlock().
  *
+ * Returns: %TRUE if there are 1 or more locks on the @accel_group,
+ * %FALSE otherwise.
+ *
  * Since: 2.14
  */
 gboolean
@@ -240,9 +240,11 @@ gtk_accel_group_get_is_locked (GtkAccelGroup *accel_group)
  * gtk_accel_group_get_modifier_mask:
  * @accel_group: a #GtkAccelGroup
  *
- * @returns: #GdkModifierType representing the mask for this
+ * Gets a #GdkModifierType representing the mask for this
  * @accel_group. For example, #GDK_CONTROL_MASK, #GDK_SHIFT_MASK, etc.
  *
+ * Returns: the modifier mask for this accel group.
+ *
  * Since: 2.14
  */
 GdkModifierType
index be36d7b780d5d0413c41425d4c3fc632c19df866..8c8b55f5497be8c1009908107517974a4338e729 100644 (file)
@@ -193,6 +193,8 @@ gtk_color_selection_dialog_new (const gchar *title)
  *
  * Retrieves the #GtkColorSelection widget embedded in the dialog.
  *
+ * Returns: the embedded #GtkColorSelection
+ *
  * Since: 2.14
  **/
 GtkWidget*
index 19fe7c0c2c6d58e09bd023b4515ec801906e3cad..4a82b3ea10329c28e5c448cb7f8a781243790973 100644 (file)
@@ -1541,9 +1541,9 @@ gtk_container_foreach_full (GtkContainer       *container,
 /**
  * gtk_container_set_focus_child:
  * @container: a #GtkContainer
- * @widget: a #GtkWidget, or %NULL
+ * @child: a #GtkWidget, or %NULL
  *
- * Sets, or unsets if @widget is %NULL, the focused child of @container.
+ * Sets, or unsets if @child is %NULL, the focused child of @container.
  *
  * This function emits the GtkContainer::set_focus_child signal of
  * @container. Implementations of #GtkContainer can override the
@@ -1551,13 +1551,13 @@ gtk_container_foreach_full (GtkContainer       *container,
  */
 void
 gtk_container_set_focus_child (GtkContainer *container,
-                              GtkWidget    *widget)
+                              GtkWidget    *child)
 {
   g_return_if_fail (GTK_IS_CONTAINER (container));
-  if (widget)
-    g_return_if_fail (GTK_IS_WIDGET (widget));
+  if (child)
+    g_return_if_fail (GTK_IS_WIDGET (child));
 
-  g_signal_emit (container, container_signals[SET_FOCUS_CHILD], 0, widget);
+  g_signal_emit (container, container_signals[SET_FOCUS_CHILD], 0, child);
 }
 
 /**
index 286b3ca077455b6b771e75eaa6de04a350c3b60c..0919c8648fc061931f86abc842d55e7d8861efac 100644 (file)
@@ -4671,7 +4671,7 @@ gtk_entry_set_editable (GtkEntry *entry,
 /**
  * gtk_entry_set_overwrite_mode:
  * @entry: a #GtkEntry
- * @setting: new value
+ * @overwrite: new value
  * 
  * Sets whether the text is overwritten when typing in the #GtkEntry.
  *
@@ -4679,11 +4679,11 @@ gtk_entry_set_editable (GtkEntry *entry,
  **/
 void
 gtk_entry_set_overwrite_mode (GtkEntry *entry,
-                              gboolean  setting)
+                              gboolean  overwrite)
 {
   g_return_if_fail (GTK_IS_ENTRY (entry));
   
-  if (entry->overwrite_mode == setting
+  if (entry->overwrite_mode == overwrite
     return;
   
   gtk_entry_toggle_overwrite (entry);
index a74a52b172fbf5f3aa00d60d8748bce295d09935..97dbcab908d9c09e7261d1fa68ce92e351134555 100644 (file)
@@ -1257,6 +1257,8 @@ gtk_font_selection_get_preview_entry (GtkFontSelection *fontsel)
  * gtk_font_selection_get_family:
  * @fontsel: a #GtkFontSelection
  * 
+ * Gets the #PangoFontFamily representing the selected font family.
+ *
  * Return value: A #PangoFontFamily representing the selected font
  * family. Font families are a collection of font faces.
  *
@@ -1274,9 +1276,12 @@ gtk_font_selection_get_family (GtkFontSelection *fontsel)
  * gtk_font_selection_get_face:
  * @fontsel: a #GtkFontSelection
  * 
- * Return value: A #PangoFontFace representing the selected font group
+ * Gets the #PangoFontFace representing the selected font group
  * details (i.e. family, slant, weight, width, etc).   
  *
+ * Return value: A #PangoFontFace representing the selected font group
+ *     details 
+ *
  * Since: 2.14
  **/
 PangoFontFace *
@@ -1291,6 +1296,8 @@ gtk_font_selection_get_face (GtkFontSelection *fontsel)
  * gtk_font_selection_get_size:
  * @fontsel: a #GtkFontSelection
  * 
+ * The selected font size.
+ *
  * Return value: A #gint representing the font size selected, or -1
  * if not.
  *
@@ -1602,6 +1609,8 @@ gtk_font_selection_dialog_new (const gchar *title)
  * gtk_font_selection_dialog_get_ok_button:
  * @fsd: a #GtkFontSelectionDialog
  *
+ * Gets the 'OK' button.
+ *
  * Return value: the #GtkWidget used in the dialog for the 'OK' button.
  *
  * Since: 2.14
@@ -1618,6 +1627,8 @@ gtk_font_selection_dialog_get_ok_button (GtkFontSelectionDialog *fsd)
  * gtk_font_selection_dialog_get_apply_button:
  * @fsd: a #GtkFontSelectionDialog
  *
+ * Gets the 'Apply' button.
+ *
  * Return value: the #GtkWidget used in the dialog for the 'Apply' button.
  *
  * Since: 2.14
@@ -1631,9 +1642,11 @@ gtk_font_selection_dialog_get_apply_button (GtkFontSelectionDialog *fsd)
 }
 
 /**
- * gtk_font_selection_dialog_get_apply_button:
+ * gtk_font_selection_dialog_get_cancel_button:
  * @fsd: a #GtkFontSelectionDialog
  *
+ * Gets the 'Cancel' button.
+ *
  * Return value: the #GtkWidget used in the dialog for the 'Cancel' button.
  */
 GtkWidget *
index 79caf7e3ec2861b5071748ca5afd632462c76fc5..d8c2e33d955a5517118adfe845d33c3d13274d7a 100644 (file)
@@ -1785,6 +1785,8 @@ gtk_menu_set_accel_path (GtkMenu     *menu,
  *
  * Retrieves the accelerator path set on the menu.
  *
+ * Returns: the accelerator path set on the menu.
+ *
  * Since: 2.14
  */
 const gchar*
index ba6526205c26fb7c97ed4ee9580168ea836540b0..dc6c57f1e8a389da5ff9e3d2a16d12bd16f0a808 100644 (file)
@@ -647,6 +647,8 @@ gtk_message_dialog_set_image (GtkMessageDialog *dialog,
  * gtk_message_dialog_get_image:
  * @dialog: a #GtkMessageDialog
  *
+ * Gets the dialog's image.
+ *
  * Return value: the dialog's image
  *
  * Since: 2.14
index 27b9be450d6e68e0a6394d41b0e322a2b13f69ab..ac491e6b790d0e77faebc8e0ce057c6f950b0321 100644 (file)
@@ -764,6 +764,8 @@ gtk_scale_button_set_orientation (GtkScaleButton *button,
  *
  * Retrieves the plus button of the #GtkScaleButton.
  *
+ * Returns: the plus button of the #GtkScaleButton.
+ *
  * Since: 2.14
  */
 GtkWidget *
@@ -780,6 +782,8 @@ gtk_scale_button_get_plus_button (GtkScaleButton *button)
  *
  * Retrieves the minus button of the #GtkScaleButton.
  *
+ * Returns: the minus button of the #GtkScaleButton.
+ *
  * Since: 2.14
  */
 GtkWidget *
index 966f1d191fe39d00e342030e2536d278d26d3267..5788c2830dd1d0ce6dd81423dae48826e5df4871 100644 (file)
  * @argvp: Address of the <parameter>argv</parameter> parameter of main().
  *        Any parameters understood by g_test_init() or gtk_init() are
  *        stripped before return.
+ * @Varargs: currently unused
+ *
+ * This function is used to initialize a GTK+ test program.
  *
- * This function is used to initialize a Gtk+ test program.
  * It will in turn call g_test_init() and gtk_init() to properly
- * initialize the testing framework and graphical toolkit.
- * It'll also set the program's locale to "C" and prevent loading of
- * rc files and Gtk+ modules. This is done to make tets program
+ * initialize the testing framework and graphical toolkit. It'll 
+ * also set the program's locale to "C" and prevent loading of rc 
+ * files and Gtk+ modules. This is done to make tets program
  * environments as deterministic as possible.
+ *
  * Like gtk_init() and g_test_init(), any known arguments will be
  * processed and stripped from @argc and @argv.
  **/
@@ -456,8 +459,10 @@ gtk_test_text_get (GtkWidget *widget)
 
 /**
  * gtk_test_create_widget
- * @widget_type:        valid widget type.
+ * @widget_type: a valid widget type.
  * @first_property_name: Name of first property to set or %NULL
+ * @Varags: value to set the first property to, followed by more
+ *    name-value pairs, terminated by %NULL
  *
  * This function wraps g_object_new() for widget types.
  * It'll automatically show all created non window widgets, also