Skip to content

Commit

Permalink
as-content-rating: Fix a typo in the type macro for AsContentRating
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pwithnall authored and ximion committed May 30, 2021
1 parent dc1ac8d commit aaac0fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/as-content-rating.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
2 changes: 1 addition & 1 deletion src/as-content-rating.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aaac0fe

Please sign in to comment.