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/
#include <ncurses.h>
int main()
{
int ch;
initscr();
noecho();
cbreak();
refresh();
WINDOW *win = newpad(20, 30);
box(win, 0, 0);
prefresh(win, 0, 0, 0, 0, 19, 29);
doupdate();
while ((ch = getch())) {
printw("%d ", ch);
refresh();
}
endwin();
return 0;
}