예제 #1
0
func (v *SourceLanguageManager) GetLanguageIds() []string {
	var ids []string
	cids := C.gtk_source_language_manager_get_language_ids(v.GSourceLanguageManager)
	for {
		ids = append(ids, gostring(*cids))
		cids = C.nextGstr(cids)
		if *cids == nil {
			break
		}
	}
	return ids
}
예제 #2
0
func (v *SourceLanguageManager) GetSearchPath() []string {
	var dirs []string
	cdirs := C.gtk_source_language_manager_get_search_path(v.GSourceLanguageManager)
	for {
		dirs = append(dirs, gostring(*cdirs))
		cdirs = C.nextGstr(cdirs)
		if *cdirs == nil {
			break
		}
	}
	return dirs
}
예제 #3
0
func (v *SourceLanguage) GetGlobs() []string {
	var globs []string
	cglobs := C.gtk_source_language_get_globs(v.GSourceLanguage)
	for {
		globs = append(globs, gostring(*cglobs))
		cglobs = C.nextGstr(cglobs)
		if *cglobs == nil {
			break
		}
	}
	return globs
}
예제 #4
0
func (v *SourceLanguage) GetStyleIds() []string {
	var ids []string
	cids := C.gtk_source_language_get_globs(v.GSourceLanguage)
	for {
		ids = append(ids, gostring(*cids))
		cids = C.nextGstr(cids)
		if *cids == nil {
			break
		}
	}
	return ids
}
예제 #5
0
func (v *SourceLanguage) GetMimeTypes() []string {
	var types []string
	ctypes := C.gtk_source_language_get_mime_types(v.GSourceLanguage)
	for {
		types = append(types, gostring(*ctypes))
		ctypes = C.nextGstr(ctypes)
		if *ctypes == nil {
			break
		}
	}
	return types
}