[gtk+/gtk-3-22] docs: improve the documentation of GtkEntry:attributes
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-22] docs: improve the documentation of GtkEntry:attributes
- Date: Wed, 4 Jan 2017 19:01:58 +0000 (UTC)
commit e75601c0585a22e574b79f76d33219c328ea9974
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Nov 25 20:08:00 2016 +0100
docs: improve the documentation of GtkEntry:attributes
See the implementation of gtk_entry_create_layout():
pango_attr_list_splice() is used to add the PangoAttrList of the preedit
string. And that is done *after* applying the PangoAttrList of the
"attributes" property.
https://bugzilla.gnome.org/show_bug.cgi?id=776868
gtk/gtkentry.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 5b06f08..bc47374 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -1473,6 +1473,9 @@ gtk_entry_class_init (GtkEntryClass *class)
*
* This is mainly useful to change the size or weight of the text.
*
+ * The #PangoAttribute's @start_index and @end_index must refer to the
+ * #GtkEntryBuffer text, i.e. without the preedit string.
+ *
* Since: 3.6
*/
entry_props[PROP_ATTRIBUTES] =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]