Commit dd402c49 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Initialize editable to TRUE. (gtk_text_tag_class_init): The default value

2006-01-06  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable to
	TRUE.
	(gtk_text_tag_class_init): The default value for the direction property
	is GTK_TEXT_DIR_NONE. Add notes about the initial values of the
	font and language properties.
parent 12b2db9c
2006-01-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable
to TRUE.
(gtk_text_tag_class_init): The default value for the direction
property is GTK_TEXT_DIR_NONE. Add notes about the initial values
of the font and language properties.
* gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
an action signal. (#325782, Martyn Russell)
......
2006-01-06 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktexttag.c (gtk_text_attributes_new): Initialize editable
to TRUE.
(gtk_text_tag_class_init): The default value for the direction
property is GTK_TEXT_DIR_NONE. Add notes about the initial values
of the font and language properties.
* gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
an action signal. (#325782, Martyn Russell)
......
......@@ -270,7 +270,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
P_("Text direction"),
P_("Text direction, e.g. right-to-left or left-to-right"),
GTK_TYPE_TEXT_DIRECTION,
GTK_TEXT_DIR_LTR,
GTK_TEXT_DIR_NONE,
GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
......@@ -281,6 +281,14 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
TRUE,
GTK_PARAM_READWRITE));
/**
* GtkTextTag:font:
*
* Font description as string, e.g. \"Sans Italic 12\".
*
* Note that the initial value of this property depends on
* the internals of #PangoFontDescription.
*/
g_object_class_install_property (object_class,
PROP_FONT,
g_param_spec_string ("font",
......@@ -297,7 +305,6 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
PANGO_TYPE_FONT_DESCRIPTION,
GTK_PARAM_READWRITE));
g_object_class_install_property (object_class,
PROP_FAMILY,
g_param_spec_string ("family",
......@@ -383,6 +390,16 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
GTK_JUSTIFY_LEFT,
GTK_PARAM_READWRITE));
/**
* GtkTextTag:language:
*
* The language this text is in, as an ISO code. Pango can use this as a
* hint when rendering the text. If not set, an appropriate default will be
* used.
*
* Note that the initial value of this property depends on the current
* locale, see also gtk_get_default_language().
*/
g_object_class_install_property (object_class,
PROP_LANGUAGE,
g_param_spec_string ("language",
......@@ -681,9 +698,6 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
static void
gtk_text_tag_init (GtkTextTag *text_tag)
{
/* 0 is basically a fine way to initialize everything in the
entire struct */
text_tag->values = gtk_text_attributes_new ();
}
......@@ -1943,6 +1957,8 @@ gtk_text_attributes_new (void)
values->font_scale = 1.0;
values->editable = TRUE;
return values;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment