summaryrefslogtreecommitdiff
path: root/gtk/gtktextattributes.h
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2011-02-09 23:41:39 +0900
committerMatthias Clasen <mclasen@redhat.com>2011-05-06 17:05:10 -0400
commitd399a4acabf9904118ea4481d057bde39bf0ab0e (patch)
treef5e0a553cbf7f0e73f64de6d6439ba5bb6548d50 /gtk/gtktextattributes.h
parent297e7393953264b4c7c67562146a7b89dbaf43b2 (diff)
downloadgtk+-d399a4acabf9904118ea4481d057bde39bf0ab0e.tar.gz
Added GdkRGBA properties to GtkTextTag.
This now allows text view to render text with alpha values in the text foreground and backgrounds, the work is almost complete, currently the error-underline-color is still a GdkColor style property and since we use only GdkRGBA for rendering it needs to be converted and applied, probably a new rgba version of the style property should also be introduced. This commit adds tests/testtextview that must be run from the tests/ directory to show translucent text in action.
Diffstat (limited to 'gtk/gtktextattributes.h')
-rw-r--r--gtk/gtktextattributes.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/gtk/gtktextattributes.h b/gtk/gtktextattributes.h
index aa7d6f8aa8..12c1af7063 100644
--- a/gtk/gtktextattributes.h
+++ b/gtk/gtktextattributes.h
@@ -102,8 +102,12 @@ struct _GtkTextAppearance
guint inside_selection : 1;
guint is_text : 1;
- /*< private >*/
- guint padding[4];
+ GdkRGBA *rgba[2];
+
+#if __SIZEOF_INT__ == __SIZEOF_POINTER__
+ /* unusable, just for ABI compat */
+ guint padding[2];
+#endif
};
struct _GtkTextAttributes
@@ -155,7 +159,9 @@ struct _GtkTextAttributes
guint editable : 1;
/*< private >*/
- guint padding[4];
+ GdkRGBA *pg_bg_rgba;
+
+ guint padding[3];
};
GtkTextAttributes* gtk_text_attributes_new (void);