libgnt/libgnt

Silence some gir warnings by hiding stuff

2020-07-30, Elliott Sales de Andrade
44b7b395b11a
Silence some gir warnings by hiding stuff

* Hide gnt_text_format_flag_to_chtype.
It's not used downstream in Finch, and is an implementation detail.

* Make gnt_widget_get_window return a gpointer.
Returning a `WINDOW *` causes gir to complain about unknown types. I'd rather
just remove this function, but it appears to be used by the window manager
plugins.

Testing Done:
Compile tested only.

Reviewed at https://reviews.imfreedom.org/r/55/
DOC_MODULE = 'libgnt'
# Extra content files, other than the main one.
content_files = [
'migrating-2to3.xml',
]
# Header files or dirs to ignore when scanning. Use base file/dir names
ignore_headers = [
'test',
'wms',
'gntinternal.h',
'gnt-skel.h',
'gntboxprivate.h',
'gntmainprivate.h',
'gntmenuprivate.h',
'gntmenuitemprivate.h',
'gntstyleprivate.h',
'gnttreeprivate.h',
'gntwidgetprivate.h',
'gntwmprivate.h',
'gntwsprivate.h',
]
# Extra options to supply to gtkdoc-scan.
scan_args = [
'--deprecated-guards=GNT_DISABLE_DEPRECATED',
'--rebuild-types',
'--rebuild-sections',
]
configure_file(
input : 'version.xml.in',
output : 'version.xml',
configuration : gnt_config)
gnome.gtkdoc(DOC_MODULE,
main_xml : DOC_MODULE + '-docs.xml',
content_files : content_files,
src_dir : libgnt_inc,
dependencies : libgnt_dep,
install : true,
ignore_headers : ignore_headers,
scan_args : scan_args,
gobject_typesfile : DOC_MODULE + '.types')