From 3d88899072362a01bbc3207da2138e405a6f0dba Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 18 Feb 2015 10:57:05 +0000 Subject: [PATCH] gtk: Fix various tiny typos in documentation comments e.g. Invalid syntax in introspection annotations, typos in object names, accidentally using a gtk-doc comment for an internal function. --- gtk/gtkcssstyleproperty.c | 2 +- gtk/gtklistbox.c | 2 +- gtk/gtklistbox.h | 1 + gtk/gtkmodelbutton.c | 2 +- gtk/gtksettings.c | 2 +- gtk/gtkwin32.c | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gtk/gtkcssstyleproperty.c b/gtk/gtkcssstyleproperty.c index 9f6dca23f2..3fe41c73d3 100644 --- a/gtk/gtkcssstyleproperty.c +++ b/gtk/gtkcssstyleproperty.c @@ -401,7 +401,7 @@ _gtk_css_style_property_get_initial_value (GtkCssStyleProperty *property) * Computes a bitmask for all properties that have at least one of @flags * set. * - * Returns: (transfer: full): A #GtkBitmask with the bit set for every + * Returns: (transfer full): A #GtkBitmask with the bit set for every * property that has at least one of @flags set. */ GtkBitmask * diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c index e358415e7d..06ccaee784 100644 --- a/gtk/gtklistbox.c +++ b/gtk/gtklistbox.c @@ -3338,7 +3338,7 @@ gtk_list_box_update_row_styles (GtkListBox *box) /** * gtk_list_box_row_set_activatable: - * @row: a #GTkListBoxrow + * @row: a #GtkListBoxRow * @activatable: %TRUE to mark the row as activatable * * Set the #GtkListBoxRow:activatable property for this row. diff --git a/gtk/gtklistbox.h b/gtk/gtklistbox.h index ad6d851bc0..4ff8383d79 100644 --- a/gtk/gtklistbox.h +++ b/gtk/gtklistbox.h @@ -172,6 +172,7 @@ typedef void (*GtkListBoxUpdateHeaderFunc) (GtkListBoxRow *row, /** * GtkListBoxCreateWidgetFunc: * @item: the item from the model for which to create a widget for + * @user_data: (closure): user data * * Called for list boxes that are bound to a #GListModel with * gtk_list_box_bind_model() for each item that gets added to the model. diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c index 2f3cfae20e..a3c62bc52e 100644 --- a/gtk/gtkmodelbutton.c +++ b/gtk/gtkmodelbutton.c @@ -42,7 +42,7 @@ * * GtkModelButton is a button class that can use a #GAction as its model. * In contrast to #GtkToggleButton or #GtkRadioButton, which can also - * be backed by a #Gaction via the #GtkActionable:action-name property, + * be backed by a #GAction via the #GtkActionable:action-name property, * GtkModelButton will adapt its appearance according to the kind of * action it is backed by, and appear either as a plain, check or * radio button. diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c index e509b3025c..3c9d037991 100644 --- a/gtk/gtksettings.c +++ b/gtk/gtksettings.c @@ -922,7 +922,7 @@ gtk_settings_class_init (GtkSettingsClass *class) g_assert (result == PROP_ERROR_BELL); /** - * GtkSettings:color-hash: (element-type utf8 Gdk.Color): + * GtkSettings:color-hash: (element-type utf8 Gdk.Color) * * Holds a hash table representation of the #GtkSettings:gtk-color-scheme * setting, mapping color names to #GdkColors. diff --git a/gtk/gtkwin32.c b/gtk/gtkwin32.c index 15dbc1489c..4f1598ea0e 100644 --- a/gtk/gtkwin32.c +++ b/gtk/gtkwin32.c @@ -75,7 +75,7 @@ find_first_manifest (HMODULE module_handle, return TRUE; } -/** +/* * Grabs the first manifest it finds in libgtk3 (which is expected to be the * common-controls-6.0.0.0 manifest we embedded to enable visual styles), * uses it to create a process-default activation context, activates that