#ifndef GO_GTKSOURCEVIEW_H #define GO_GTKSOURCEVIEW_H #include #include #include #include #include #include static inline gchar** make_strings(int count) { return (gchar**)malloc(sizeof(gchar*) * count); } static inline void destroy_strings(gchar** strings) { free(strings); } static inline void set_string(gchar** strings, int n, gchar* str) { strings[n] = str; } static inline GObject* toGObject(void* o) { return G_OBJECT(o); } static inline gchar* toGstr(const char* s) { return (gchar*)s; } static inline char* toCstr(const gchar* s) { return (char*)s; } static inline gchar** nextGstr(gchar** s) { return (s+1); } static inline void freeCstr(char* s) { free(s); } static GtkSourceView* toGtkSourceView(void* w) { return GTK_SOURCE_VIEW(w); } #endif