From 50851c7f25ffcf822c905feb65a4709a1abd3571 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 27 May 2021 19:03:24 +0100 Subject: [PATCH] as-content-rating: Fix a typo in the type macro for AsContentRating This is technically an API break, but since it was a violation of the GObject naming conventions, it seems likely that nobody had encountered it before (or relied on it), otherwise it would have been reported. Signed-off-by: Philip Withnall --- src/as-content-rating.c | 2 +- src/as-content-rating.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/as-content-rating.c b/src/as-content-rating.c index 7d0fdc0f..2e754f0c 100644 --- a/src/as-content-rating.c +++ b/src/as-content-rating.c @@ -1578,6 +1578,6 @@ AsContentRating* as_content_rating_new (void) { AsContentRating *content_rating; - content_rating = g_object_new (AS_TYPE_CONTENT, NULL); + content_rating = g_object_new (AS_TYPE_CONTENT_RATING, NULL); return AS_CONTENT_RATING (content_rating); } diff --git a/src/as-content-rating.h b/src/as-content-rating.h index 190032b3..0e2e332d 100644 --- a/src/as-content-rating.h +++ b/src/as-content-rating.h @@ -31,7 +31,7 @@ G_BEGIN_DECLS -#define AS_TYPE_CONTENT (as_content_rating_get_type ()) +#define AS_TYPE_CONTENT_RATING (as_content_rating_get_type ()) G_DECLARE_DERIVABLE_TYPE (AsContentRating, as_content_rating, AS, CONTENT_RATING, GObject) struct _AsContentRatingClass