-
Notifications
You must be signed in to change notification settings - Fork 4
/
sourceview.go.h
103 lines (84 loc) · 1.83 KB
/
sourceview.go.h
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#include <gtk/gtk.h>
static inline gchar** make_strings(int count) {
return (gchar**)malloc(sizeof(gchar*) * count);
}
static inline void destroy_strings(gchar** strings) {
free(strings);
}
static inline gchar* get_string(gchar** strings, int n) {
return strings[n];
}
static inline void set_string(gchar** strings, int n, gchar* str) {
strings[n] = str;
}
static inline gchar** next_gcharptr(gchar** s) { return (s+1); }
static GtkTextView *
toGtkTextView(void *p)
{
return (GTK_TEXT_VIEW(p));
}
static GtkTextBuffer *
toGtkTextBuffer(void *p)
{
return (GTK_TEXT_BUFFER(p));
}
static GtkSourceView *
toGtkSourceView(void *p)
{
return (GTK_SOURCE_VIEW(p));
}
static GtkSourceBuffer *
toGtkSourceBuffer(void *p)
{
return (GTK_SOURCE_BUFFER(p));
}
static GtkSourceGutter *
toGtkSourceGutter(void *p)
{
return (GTK_SOURCE_GUTTER(p));
}
static GtkSourceLanguageManager *
toGtkSourceLanguageManager(void *p)
{
return (GTK_SOURCE_LANGUAGE_MANAGER(p));
}
static GtkSourceLanguage *
toGtkSourceLanguage(void *p)
{
return (GTK_SOURCE_LANGUAGE(p));
}
static GtkSourceStyle *
toGtkSourceStyle(void *p)
{
return (GTK_SOURCE_STYLE(p));
}
static GtkSourceStyleScheme *
toGtkSourceStyleScheme(void *p)
{
return (GTK_SOURCE_STYLE_SCHEME(p));
}
static GtkSourceStyleSchemeManager *
toGtkSourceStyleSchemeManager(void *p)
{
return (GTK_SOURCE_STYLE_SCHEME_MANAGER(p));
}
static GtkSourceStyleSchemeChooser *
toGtkSourceStyleSchemeChooser(void *p)
{
return (GTK_SOURCE_STYLE_SCHEME_CHOOSER(p));
}
static GtkSourceStyleSchemeChooserButton *
toSourceStyleSchemeChooserButton(void *p)
{
return (GTK_SOURCE_STYLE_SCHEME_CHOOSER_BUTTON(p));
}
static GtkSourceStyleSchemeChooserWidget *
toSourceStyleSchemeChooserWidget(void *p)
{
return (GTK_SOURCE_STYLE_SCHEME_CHOOSER_WIDGET(p));
}
static GtkTextTag *
toGtkTextTag(void *p)
{
return (GTK_TEXT_TAG(p));
}