Make internal gnt_screen* functions private.
--- a/doc/meson.build Sat May 11 02:07:23 2019 -0400
+++ b/doc/meson.build Sat May 11 02:15:27 2019 -0400
@@ -7,6 +7,7 @@
--- a/gnt.h.in Sat May 11 02:07:23 2019 -0400
+++ b/gnt.h.in Sat May 11 02:15:27 2019 -0400
@@ -98,30 +98,6 @@
void gnt_window_present(GntWidget *window);
- * Internal function -- do not use.
- * Use gnt_widget_show() instead.
-void gnt_screen_occupy(GntWidget *widget);
- * Internal function -- do not use.
- * Use gnt_widget_hide() instead.
-void gnt_screen_release(GntWidget *widget);
- * Internal function -- do not use.
- * Use gnt_widget_draw() instead.
-void gnt_screen_update(GntWidget *widget);
* gnt_screen_resize_widget:
* @widget: The widget to resize.
* @width: The desired width.
--- a/gntbox.c Sat May 11 02:07:23 2019 -0400
+++ b/gntbox.c Sat May 11 02:15:27 2019 -0400
@@ -25,6 +25,7 @@
+#include "gntmainprivate.h" #include "gntwidgetprivate.h"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gntmainprivate.h Sat May 11 02:15:27 2019 -0400
@@ -0,0 +1,37 @@
+ * GNT - The GLib Ncurses Toolkit + * GNT is the legal property of its developers, whose names are too numerous + * to list here. Please refer to the COPYRIGHT file distributed with this + * This library is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +#ifndef GNT_MAIN_PRIVATE_H +#define GNT_MAIN_PRIVATE_H +/* Private access to some internals. Contact us if you need these. */ +void gnt_screen_occupy(GntWidget *widget); +void gnt_screen_release(GntWidget *widget); +void gnt_screen_update(GntWidget *widget); +#endif /* GNT_MAIN_PRIVATE_H */ --- a/gntwidget.c Sat May 11 02:07:23 2019 -0400
+++ b/gntwidget.c Sat May 11 02:15:27 2019 -0400
@@ -27,6 +27,8 @@
+#include "gntmainprivate.h" #define GNT_WIDGET_FLAGS(priv) (priv->flags)
#define GNT_WIDGET_SET_FLAGS(priv, flags) (GNT_WIDGET_FLAGS(priv) |= flags)
#define GNT_WIDGET_UNSET_FLAGS(priv, flags) (GNT_WIDGET_FLAGS(priv) &= ~(flags))