[gnome-software/1392-unify-lozenge-styling] Apply 9 suggestion(s) to 3 file(s)
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1392-unify-lozenge-styling] Apply 9 suggestion(s) to 3 file(s)
- Date: Mon, 16 May 2022 12:36:07 +0000 (UTC)
commit f6eb4c6038a92704b49dd57b0a85c2fcbb82eb06
Author: Philip Withnall <philip tecnocode co uk>
Date: Mon May 16 12:36:07 2022 +0000
Apply 9 suggestion(s) to 3 file(s)
src/gs-age-rating-context-dialog.c | 2 +-
src/gs-layout-manager.c | 10 ++++++----
src/gs-lozenge-layout.c | 20 ++++++++++++++++++++
3 files changed, 27 insertions(+), 5 deletions(-)
---
diff --git a/src/gs-age-rating-context-dialog.c b/src/gs-age-rating-context-dialog.c
index 5b75723f9..52a617e7d 100644
--- a/src/gs-age-rating-context-dialog.c
+++ b/src/gs-age-rating-context-dialog.c
@@ -883,7 +883,7 @@ gs_age_rating_context_dialog_format_age_short (AsContentRatingSystem system,
* specific age
*
* Update the @lozenge widget to indicate the overall age rating for @app.
- * This involves changing their CSS class and label content.
+ * This involves changing its CSS class and label content.
*
* If the overall age rating for @app is unknown (because the app doesn’t
* provide a complete `<content_rating>` element in its appdata), the lozenge is
diff --git a/src/gs-layout-manager.c b/src/gs-layout-manager.c
index ce0ed8a53..54776ea0b 100644
--- a/src/gs-layout-manager.c
+++ b/src/gs-layout-manager.c
@@ -32,7 +32,7 @@ gs_layout_manager_measure_stub (GtkLayoutManager *layout_manager,
gint *minimum_baseline,
gint *natural_baseline)
{
- /* Do nothing, just ot be able to call it from the descendants without checking for NULL */
+ /* Do nothing, just to be able to call it from the descendants without checking for NULL */
}
static void
@@ -42,7 +42,7 @@ gs_layout_manager_allocate_stub (GtkLayoutManager *layout_manager,
gint height,
gint baseline)
{
- /* Do nothing, just ot be able to call it from the descendants without checking for NULL */
+ /* Do nothing, just to be able to call it from the descendants without checking for NULL */
}
static void
@@ -89,7 +89,7 @@ gs_layout_manager_measure (GtkLayoutManager *layout_manager,
*natural = nat;
g_signal_emit (layout_manager, signals[SIGNAL_MEASURE], 0,
- widget, orientation, for_size, minimum, natural, minimum_baseline, natural_baseline);
+ widget, orientation, for_size, minimum, natural, minimum_baseline, natural_baseline);
}
static void
@@ -109,7 +109,7 @@ gs_layout_manager_allocate (GtkLayoutManager *layout_manager,
}
g_signal_emit (layout_manager, signals[SIGNAL_ALLOCATE], 0,
- widget, width, height, baseline);
+ widget, width, height, baseline);
}
static void
@@ -147,6 +147,8 @@ gs_layout_manager_init (GsLayoutManager *self)
/**
* gs_layout_manager_new:
*
+ * Create a new #GsLayoutManager.
+ *
* Returns: (transfer full): a new #GsLayoutManager
*
* Since: 43
diff --git a/src/gs-lozenge-layout.c b/src/gs-lozenge-layout.c
index c4e22429a..465498801 100644
--- a/src/gs-lozenge-layout.c
+++ b/src/gs-lozenge-layout.c
@@ -124,6 +124,8 @@ gs_lozenge_layout_init (GsLozengeLayout *self)
/**
* gs_lozenge_layout_new:
*
+ * Create a new #GsLozengeLayout.
+ *
* Returns: (transfer full): a new #GsLozengeLayout
*
* Since: 43
@@ -134,6 +136,15 @@ gs_lozenge_layout_new (void)
return g_object_new (GS_TYPE_LOZENGE_LAYOUT, NULL);
}
+/**
+ * gs_lozenge_layout_get_circular:
+ * @self: a #GsLozengeLayout
+ *
+ * Get the value of #GsLozengeLayout:circular.
+ *
+ * Returns: %TRUE if the lozenge has to be circular, %FALSE otherwise
+ * Since: 43
+ */
gboolean
gs_lozenge_layout_get_circular (GsLozengeLayout *self)
{
@@ -142,6 +153,15 @@ gs_lozenge_layout_get_circular (GsLozengeLayout *self)
return self->circular;
}
+/**
+ * gs_lozenge_layout_set_circular:
+ * @self: a #GsLozengeLayout
+ * @value: %TRUE if the lozenge should be circular, %FALSE otherwise
+ *
+ * Set the value of #GsLozengeLayout:circular to @value.
+ *
+ * Since: 43
+ */
void
gs_lozenge_layout_set_circular (GsLozengeLayout *self,
gboolean value)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]