[gtk/ebassi/for-master: 6/9] docs: Fix annotations in GtkCenterLayout
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/for-master: 6/9] docs: Fix annotations in GtkCenterLayout
- Date: Tue, 1 Dec 2020 15:57:20 +0000 (UTC)
commit eba8f36d4f20c958a68917601e91c27f535f4251
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Dec 1 14:44:28 2020 +0000
docs: Fix annotations in GtkCenterLayout
Missing ':' separator.
gtk/gtkcenterlayout.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcenterlayout.c b/gtk/gtkcenterlayout.c
index d9be591c5a..f7b77458e5 100644
--- a/gtk/gtkcenterlayout.c
+++ b/gtk/gtkcenterlayout.c
@@ -613,13 +613,15 @@ gtk_center_layout_set_baseline_position (GtkCenterLayout *self,
GtkBaselinePosition
gtk_center_layout_get_baseline_position (GtkCenterLayout *self)
{
+ g_return_val_if_fail (GTK_IS_CENTER_LAYOUT (self), GTK_BASELINE_POSITION_TOP);
+
return self->baseline_pos;
}
/**
* gtk_center_layout_set_start_widget:
* @self: a #GtkCenterLayout
- * @widget (nullable): the new start widget
+ * @widget: (nullable): the new start widget
*
* Sets the new start widget of @self.
*
@@ -643,13 +645,15 @@ gtk_center_layout_set_start_widget (GtkCenterLayout *self,
GtkWidget *
gtk_center_layout_get_start_widget (GtkCenterLayout *self)
{
+ g_return_val_if_fail (GTK_IS_CENTER_LAYOUT (self), NULL);
+
return self->start_widget;
}
/**
* gtk_center_layout_set_center_widget:
* @self: a #GtkCenterLayout
- * @widget (nullable): the new center widget
+ * @widget: (nullable): the new center widget
*
* Sets the new center widget of @self.
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]