[gtk+] Complete the privatization of GtkTextAttributes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Complete the privatization of GtkTextAttributes
- Date: Fri, 4 Nov 2016 16:07:21 +0000 (UTC)
commit 2c26f0cae4c06336832f4efd0e32e4ae1f8e84fa
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Nov 4 12:05:52 2016 -0400
Complete the privatization of GtkTextAttributes
This was not quite complete, as gtktextattributes.h was still
being included in public headers.
https://bugzilla.gnome.org/show_bug.cgi?id=773903
gtk/gtk-autocleanups.h | 1 -
gtk/gtk.h | 1 -
gtk/gtktextattributes.h | 4 ----
gtk/gtktextiter.h | 4 ----
gtk/gtktextiterprivate.h | 3 +++
gtk/gtktextlayout.h | 1 +
gtk/gtktexttagprivate.h | 1 +
gtk/gtktextview.c | 1 +
8 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtk-autocleanups.h b/gtk/gtk-autocleanups.h
index 9ea63c6..a46e35a 100644
--- a/gtk/gtk-autocleanups.h
+++ b/gtk/gtk-autocleanups.h
@@ -191,7 +191,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkVolumeButton, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPaperSize, gtk_paper_size_free)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkSelectionData, gtk_selection_data_free)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTargetList, gtk_target_list_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTextAttributes, gtk_text_attributes_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTextIter, gtk_text_iter_free)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTreeIter, gtk_tree_iter_free)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTreeRowReference, gtk_tree_row_reference_free)
diff --git a/gtk/gtk.h b/gtk/gtk.h
index 5bc0b54..3e4fb44 100644
--- a/gtk/gtk.h
+++ b/gtk/gtk.h
@@ -204,7 +204,6 @@
#include <gtk/gtkstylecontext.h>
#include <gtk/gtkstyleprovider.h>
#include <gtk/gtkswitch.h>
-#include <gtk/gtktextattributes.h>
#include <gtk/gtktextbuffer.h>
#include <gtk/gtktextbufferrichtext.h>
#include <gtk/gtktextchild.h>
diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h
index b840eeb..8dedeac 100644
--- a/gtk/gtktextattributes.h
+++ b/gtk/gtktextattributes.h
@@ -51,10 +51,6 @@
#define __GTK_TEXT_ATTRIBUTES_H__
-#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
-#error "Only <gtk/gtk.h> can be included directly."
-#endif
-
#include <gdk/gdk.h>
#include <gtk/gtkenums.h>
diff --git a/gtk/gtktextiter.h b/gtk/gtktextiter.h
index e56bd84..368f4f3 100644
--- a/gtk/gtktextiter.h
+++ b/gtk/gtktextiter.h
@@ -29,7 +29,6 @@
#error "Only <gtk/gtk.h> can be included directly."
#endif
-#include <gtk/gtktextattributes.h>
#include <gtk/gtktextchild.h>
#include <gtk/gtktexttag.h>
@@ -220,9 +219,6 @@ GDK_AVAILABLE_IN_ALL
gint gtk_text_iter_get_bytes_in_line (const GtkTextIter *iter);
GDK_AVAILABLE_IN_ALL
-gboolean gtk_text_iter_get_attributes (const GtkTextIter *iter,
- GtkTextAttributes *values);
-GDK_AVAILABLE_IN_ALL
PangoLanguage* gtk_text_iter_get_language (const GtkTextIter *iter);
GDK_AVAILABLE_IN_ALL
gboolean gtk_text_iter_is_end (const GtkTextIter *iter);
diff --git a/gtk/gtktextiterprivate.h b/gtk/gtktextiterprivate.h
index 1bdc7f7..4fdf772 100644
--- a/gtk/gtktextiterprivate.h
+++ b/gtk/gtktextiterprivate.h
@@ -31,6 +31,7 @@ G_BEGIN_DECLS
#include <gtk/gtktextiter.h>
#include <gtk/gtktextbtree.h>
+#include <gtk/gtktextattributes.h>
GtkTextLineSegment *_gtk_text_iter_get_indexable_segment (const GtkTextIter *iter);
GtkTextLineSegment *_gtk_text_iter_get_any_segment (const GtkTextIter *iter);
@@ -41,6 +42,8 @@ gboolean _gtk_text_iter_backward_indexable_segment (GtkTextIter
gint _gtk_text_iter_get_segment_byte (const GtkTextIter *iter);
gint _gtk_text_iter_get_segment_char (const GtkTextIter *iter);
+gboolean gtk_text_iter_get_attributes (const GtkTextIter *iter,
+ GtkTextAttributes *values);
/* debug */
void _gtk_text_iter_check (const GtkTextIter *iter);
diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h
index 1b7b826..684d868 100644
--- a/gtk/gtktextlayout.h
+++ b/gtk/gtktextlayout.h
@@ -89,6 +89,7 @@
#endif
#include <gtk/gtk.h>
+#include <gtk/gtktextattributes.h>
G_BEGIN_DECLS
diff --git a/gtk/gtktexttagprivate.h b/gtk/gtktexttagprivate.h
index 56733a2..75f448d 100644
--- a/gtk/gtktexttagprivate.h
+++ b/gtk/gtktexttagprivate.h
@@ -26,6 +26,7 @@
#define __GTK_TEXT_TAG_PRIVATE_H__
#include <gtk/gtk.h>
+#include <gtk/gtktextattributes.h>
typedef struct _GtkTextBTreeNode GtkTextBTreeNode;
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 9d862f7..f21ed31 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -45,6 +45,7 @@
#include "gtkselectionprivate.h"
#include "gtktextbufferrichtext.h"
#include "gtktextdisplay.h"
+#include "gtktextiterprivate.h"
#include "gtkimmulticontext.h"
#include "gtkprivate.h"
#include "gtktextutil.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]