libgnt/libgnt

Deprecate gnt_text_format_flag_to_chtype.
release-2.x.y
2020-07-30, Elliott Sales de Andrade
24e7edbf6b0d
Parents e4311908a44f
Children 4315c5a6d1d4
Deprecate gnt_text_format_flag_to_chtype.

It's not used by Finch, and leaks internals.

Testing Done:
Compile only, search on Finch source code.

Reviewed at https://reviews.imfreedom.org/r/53/
--- a/gnttextview.h Tue Jul 21 21:22:42 2020 -0500
+++ b/gnttextview.h Thu Jul 30 04:36:33 2020 -0500
@@ -191,6 +191,7 @@
*/
void gnt_text_view_next_line(GntTextView *view);
+#ifndef GNT_DISABLE_DEPRECATED
/**
* gnt_text_format_flag_to_chtype:
* @flags: The GNT text format.
@@ -198,8 +199,11 @@
* Convert GNT-text formats to ncurses-text attributes.
*
* Returns: Nucrses text attribute.
+ *
+ * Deprecated: 2.14.1: This is an internal implementation detail.
*/
chtype gnt_text_format_flag_to_chtype(GntTextFormatFlags flags);
+#endif
/**
* gnt_text_view_clear: