grim/libgnt

Make internal GntStyle functions private.

2019-05-11, Elliott Sales de Andrade
719383e7d980
Parents ccbfc77c7da2
Children bac01043c7fb
Make internal GntStyle functions private.
--- a/doc/meson.build Sat May 11 02:01:40 2019 -0400
+++ b/doc/meson.build Sat May 11 02:07:23 2019 -0400
@@ -9,6 +9,7 @@
'gntboxprivate.h',
'gntmenuprivate.h',
'gntmenuitemprivate.h',
+ 'gntstyleprivate.h',
'gnttreeprivate.h',
'gntwidgetprivate.h',
'gntwmprivate.h',
--- a/gntbindable.c Sat May 11 02:01:40 2019 -0400
+++ b/gntbindable.c Sat May 11 02:07:23 2019 -0400
@@ -37,6 +37,8 @@
#include "gntwindow.h"
#include "gntlabel.h"
+#include "gntstyleprivate.h"
+
static struct
{
char * okeys; /* Old keystrokes */
--- a/gntstyle.h Sat May 11 02:01:40 2019 -0400
+++ b/gntstyle.h Sat May 11 02:07:23 2019 -0400
@@ -130,13 +130,6 @@
gboolean gnt_style_get_bool(GntStyle style, gboolean def);
/**
- * gnt_styles_get_keyremaps:
- *
- * Internal function -- do not use.
- */
-void gnt_styles_get_keyremaps(GType type, GHashTable *hash);
-
-/**
* gnt_style_read_actions:
*
* Internal function -- do not use.
@@ -155,15 +148,6 @@
gboolean gnt_style_read_menu_accels(const char *name, GHashTable *table);
/**
- * gnt_style_read_workspaces:
- *
- * Reads workspace information.
- *
- * Internal function -- do not use.
- */
-void gnt_style_read_workspaces(GntWM *wm);
-
-/**
* gnt_init_styles:
*
* Initialize style settings.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gntstyleprivate.h Sat May 11 02:07:23 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
+ * source distribution.
+ *
+ * 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_STYLE_PRIVATE_H
+#define GNT_STYLE_PRIVATE_H
+
+#include "gnt.h"
+#include "gntstyle.h"
+
+G_BEGIN_DECLS
+
+/* Private access to some internals. Contact us if you need these. */
+void gnt_styles_get_keyremaps(GType type, GHashTable *hash);
+void gnt_style_read_workspaces(GntWM *wm);
+
+G_END_DECLS
+
+#endif /* GNT_STYLE_PRIVATE_H */
--- a/gntwm.c Sat May 11 02:01:40 2019 -0400
+++ b/gntwm.c Sat May 11 02:07:23 2019 -0400
@@ -62,6 +62,7 @@
#include "gntboxprivate.h"
#include "gntmenuprivate.h"
+#include "gntstyleprivate.h"
#include "gntwidgetprivate.h"
#include "gntwmprivate.h"
#include "gntwsprivate.h"