summaryrefslogtreecommitdiffstats
path: root/src/gs-description-box.h
blob: 667b2143d1aac2ed15e04f559462b4d1a1a94178 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 * vi:set noexpandtab tabstop=8 shiftwidth=8:
 *
 * Copyright (C) 2020 Red Hat <www.redhat.com>
 *
 * SPDX-License-Identifier: GPL-2.0+
 */

#pragma once

#include <gtk/gtk.h>

G_BEGIN_DECLS

#define GS_TYPE_DESCRIPTION_BOX (gs_description_box_get_type ())

G_DECLARE_FINAL_TYPE (GsDescriptionBox, gs_description_box, GS, DESCRIPTION_BOX, GtkWidget)

GtkWidget	*gs_description_box_new		(void);
const gchar	*gs_description_box_get_text	(GsDescriptionBox *box);
void		 gs_description_box_set_text	(GsDescriptionBox *box,
						 const gchar *text);
gboolean	 gs_description_box_get_collapsed
						(GsDescriptionBox *box);
void		 gs_description_box_set_collapsed
						(GsDescriptionBox *box,
						 gboolean collapsed);

G_END_DECLS