summaryrefslogtreecommitdiffstats
path: root/src/gs-review-histogram.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gs-review-histogram.h')
-rw-r--r--src/gs-review-histogram.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/gs-review-histogram.h b/src/gs-review-histogram.h
new file mode 100644
index 0000000..0e9dafc
--- /dev/null
+++ b/src/gs-review-histogram.h
@@ -0,0 +1,30 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ * vi:set noexpandtab tabstop=8 shiftwidth=8:
+ *
+ * Copyright (C) 2016 Canonical Ltd.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#pragma once
+
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define GS_TYPE_REVIEW_HISTOGRAM (gs_review_histogram_get_type ())
+
+G_DECLARE_DERIVABLE_TYPE (GsReviewHistogram, gs_review_histogram, GS, REVIEW_HISTOGRAM, GtkWidget)
+
+struct _GsReviewHistogramClass
+{
+ GtkWidgetClass parent_class;
+};
+
+GtkWidget *gs_review_histogram_new (void);
+
+void gs_review_histogram_set_ratings (GsReviewHistogram *histogram,
+ gint rating_percent,
+ GArray *review_ratings);
+
+G_END_DECLS