[gtk/ebassi/for-master: 3/4] Hide GtkTextAttributes functions
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/for-master: 3/4] Hide GtkTextAttributes functions
- Date: Tue, 15 Dec 2020 16:28:46 +0000 (UTC)
commit ea5e186bb83b2f707f2b40d7c9d7392b57fa2748
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Dec 15 16:20:21 2020 +0000
Hide GtkTextAttributes functions
The type is private, so making functions operating on it public is
pointless.
docs/reference/gtk/meson.build | 1 +
gtk/gtktextattributes.c | 4 ----
gtk/gtktextattributes.h | 13 -------------
3 files changed, 1 insertion(+), 17 deletions(-)
---
diff --git a/docs/reference/gtk/meson.build b/docs/reference/gtk/meson.build
index bc0b44fbfc..67fbaf55cb 100644
--- a/docs/reference/gtk/meson.build
+++ b/docs/reference/gtk/meson.build
@@ -244,6 +244,7 @@ private_headers = [
'gtkstylepropertyprivate.h',
'gtkstyleproviderprivate.h',
'gtktestatcontextprivate.h',
+ 'gtktextattributes.h',
'gtktextbufferprivate.h',
'gtktextchildprivate.h',
'gtktextdisplayprivate.h',
diff --git a/gtk/gtktextattributes.c b/gtk/gtktextattributes.c
index 47c73232a3..0f0abe8e38 100644
--- a/gtk/gtktextattributes.c
+++ b/gtk/gtktextattributes.c
@@ -100,10 +100,6 @@ gtk_text_attributes_copy (GtkTextAttributes *src)
return dest;
}
-G_DEFINE_BOXED_TYPE (GtkTextAttributes, gtk_text_attributes,
- gtk_text_attributes_ref,
- gtk_text_attributes_unref)
-
/**
* gtk_text_attributes_copy_values:
* @src: a #GtkTextAttributes
diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h
index 367a0980cc..06ccbe6e84 100644
--- a/gtk/gtktextattributes.h
+++ b/gtk/gtktextattributes.h
@@ -58,9 +58,6 @@
G_BEGIN_DECLS
typedef struct _GtkTextAttributes GtkTextAttributes;
-
-#define GTK_TYPE_TEXT_ATTRIBUTES (gtk_text_attributes_get_type ())
-
typedef struct _GtkTextAppearance GtkTextAppearance;
/**
@@ -184,23 +181,13 @@ struct _GtkTextAttributes
char *font_features;
};
-GDK_AVAILABLE_IN_ALL
GtkTextAttributes* gtk_text_attributes_new (void);
-GDK_AVAILABLE_IN_ALL
GtkTextAttributes* gtk_text_attributes_copy (GtkTextAttributes *src);
-GDK_AVAILABLE_IN_ALL
void gtk_text_attributes_copy_values (GtkTextAttributes *src,
GtkTextAttributes *dest);
-GDK_AVAILABLE_IN_ALL
void gtk_text_attributes_unref (GtkTextAttributes *values);
-GDK_AVAILABLE_IN_ALL
GtkTextAttributes *gtk_text_attributes_ref (GtkTextAttributes *values);
-GDK_AVAILABLE_IN_ALL
-GType gtk_text_attributes_get_type (void) G_GNUC_CONST;
-
-
G_END_DECLS
#endif
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]