Hide GtkTextBTree's typedef

It's a private type, and has no business in a public header.
This commit is contained in:
Emmanuele Bassi 2021-02-22 19:29:37 +00:00
parent 1fb5824e1e
commit a8f36b8381
3 changed files with 8 additions and 8 deletions

View File

@ -37,13 +37,6 @@
G_BEGIN_DECLS
/*
* This is the PUBLIC representation of a text buffer.
* GtkTextBTree is the PRIVATE internal representation of it.
*/
typedef struct _GtkTextBTree GtkTextBTree;
#define GTK_TYPE_TEXT_BUFFER (gtk_text_buffer_get_type ())
#define GTK_TEXT_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TEXT_BUFFER, GtkTextBuffer))
#define GTK_TEXT_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TEXT_BUFFER, GtkTextBufferClass))

View File

@ -19,10 +19,10 @@
#define __GTK_TEXT_BUFFER_PRIVATE_H__
#include <gtk/gtktextbuffer.h>
#include "gtktexttypes.h"
G_BEGIN_DECLS
void _gtk_text_buffer_spew (GtkTextBuffer *buffer);
GtkTextBTree* _gtk_text_buffer_get_btree (GtkTextBuffer *buffer);

View File

@ -30,6 +30,13 @@
G_BEGIN_DECLS
/*
* This is the PUBLIC representation of a text buffer.
* GtkTextBTree is the PRIVATE internal representation of it.
*/
typedef struct _GtkTextBTree GtkTextBTree;
typedef struct _GtkTextCounter GtkTextCounter;
typedef struct _GtkTextLineSegment GtkTextLineSegment;
typedef struct _GtkTextLineSegmentClass GtkTextLineSegmentClass;