[gtk/matthiasc/for-master: 7/9] Cosmetics
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 7/9] Cosmetics
- Date: Fri, 19 Mar 2021 05:22:15 +0000 (UTC)
commit 4fce3ceffc24e11373de038caf829076c94d84ae
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 18 20:16:59 2021 -0400
Cosmetics
Pack the GtkTextAttributes struct better.
gtk/gtktextattributes.h | 26 +++++++++++---------------
1 file changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h
index 06ccbe6e84..c417de7e9d 100644
--- a/gtk/gtktextattributes.h
+++ b/gtk/gtktextattributes.h
@@ -142,12 +142,19 @@ struct _GtkTextAttributes
{
guint refcount;
- GtkTextAppearance appearance;
-
GtkJustification justification;
GtkTextDirection direction;
+ GtkWrapMode wrap_mode;
+
+ GtkTextAppearance appearance;
PangoFontDescription *font;
+ char *font_features;
+
+ GdkRGBA *pg_bg_rgba;
+
+ PangoTabArray *tabs;
+ PangoLanguage *language;
double font_scale;
@@ -159,11 +166,7 @@ struct _GtkTextAttributes
int pixels_below_lines;
int pixels_inside_wrap;
- PangoTabArray *tabs;
-
- GtkWrapMode wrap_mode;
-
- PangoLanguage *language;
+ int letter_spacing;
guint invisible : 1;
guint bg_full_height : 1;
@@ -171,14 +174,7 @@ struct _GtkTextAttributes
guint no_fallback: 1;
guint no_breaks : 1;
guint show_spaces : 3; /* PangoShowFlags */
- int no_hyphens : 1;
-
-
- GdkRGBA *pg_bg_rgba;
-
- int letter_spacing;
-
- char *font_features;
+ guint no_hyphens : 1;
};
GtkTextAttributes* gtk_text_attributes_new (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]