summaryrefslogtreecommitdiff
path: root/endless/eosattribution-private.h
blob: b468a714bf8d5e4b5060fcebc20e2c6bb53a9d0e (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* Copyright 2015 Endless Mobile, Inc. */

#ifndef EOS_ATTRIBUTION_H
#define EOS_ATTRIBUTION_H

#include "eostypes.h"

#include <gtk/gtk.h>

G_BEGIN_DECLS

#define EOS_TYPE_ATTRIBUTION eos_attribution_get_type()

#define EOS_ATTRIBUTION(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
  EOS_TYPE_ATTRIBUTION, EosAttribution))

#define EOS_ATTRIBUTION_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
  EOS_TYPE_ATTRIBUTION, EosAttributionClass))

#define EOS_IS_ATTRIBUTION(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
  EOS_TYPE_ATTRIBUTION))

#define EOS_IS_ATTRIBUTION_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
  EOS_TYPE_ATTRIBUTION))

#define EOS_ATTRIBUTION_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
  EOS_TYPE_ATTRIBUTION, EosAttributionClass))

typedef struct _EosAttribution EosAttribution;
typedef struct _EosAttributionClass EosAttributionClass;

struct _EosAttribution
{
  GtkScrolledWindow parent;
};

struct _EosAttributionClass
{
  GtkScrolledWindowClass parent_class;
};

GType      eos_attribution_get_type                (void) G_GNUC_CONST;

GtkWidget *eos_attribution_new                     (void);

gboolean   eos_attribution_populate_from_json_file (EosAttribution *self,
                                                    GFile          *file,
                                                    GError        **error);

G_END_DECLS

#endif /* EOS_ATTRIBUTION_H */