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.
This commit is contained in:
parent
12b2db9c67
commit
dd402c49f8
@ -1,5 +1,11 @@
|
|||||||
2006-01-06 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
|
||||||
an action signal. (#325782, Martyn Russell)
|
an action signal. (#325782, Martyn Russell)
|
||||||
|
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
2006-01-06 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtktoolbutton.c (gtk_tool_button_class_init): Make clicked
|
||||||
an action signal. (#325782, Martyn Russell)
|
an action signal. (#325782, Martyn Russell)
|
||||||
|
|
||||||
|
@ -270,7 +270,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
|
|||||||
P_("Text direction"),
|
P_("Text direction"),
|
||||||
P_("Text direction, e.g. right-to-left or left-to-right"),
|
P_("Text direction, e.g. right-to-left or left-to-right"),
|
||||||
GTK_TYPE_TEXT_DIRECTION,
|
GTK_TYPE_TEXT_DIRECTION,
|
||||||
GTK_TEXT_DIR_LTR,
|
GTK_TEXT_DIR_NONE,
|
||||||
GTK_PARAM_READWRITE));
|
GTK_PARAM_READWRITE));
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
@ -281,6 +281,14 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
|
|||||||
TRUE,
|
TRUE,
|
||||||
GTK_PARAM_READWRITE));
|
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,
|
g_object_class_install_property (object_class,
|
||||||
PROP_FONT,
|
PROP_FONT,
|
||||||
g_param_spec_string ("font",
|
g_param_spec_string ("font",
|
||||||
@ -296,7 +304,6 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
|
|||||||
P_("Font description as a PangoFontDescription struct"),
|
P_("Font description as a PangoFontDescription struct"),
|
||||||
PANGO_TYPE_FONT_DESCRIPTION,
|
PANGO_TYPE_FONT_DESCRIPTION,
|
||||||
GTK_PARAM_READWRITE));
|
GTK_PARAM_READWRITE));
|
||||||
|
|
||||||
|
|
||||||
g_object_class_install_property (object_class,
|
g_object_class_install_property (object_class,
|
||||||
PROP_FAMILY,
|
PROP_FAMILY,
|
||||||
@ -382,7 +389,17 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
|
|||||||
GTK_TYPE_JUSTIFICATION,
|
GTK_TYPE_JUSTIFICATION,
|
||||||
GTK_JUSTIFY_LEFT,
|
GTK_JUSTIFY_LEFT,
|
||||||
GTK_PARAM_READWRITE));
|
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,
|
g_object_class_install_property (object_class,
|
||||||
PROP_LANGUAGE,
|
PROP_LANGUAGE,
|
||||||
g_param_spec_string ("language",
|
g_param_spec_string ("language",
|
||||||
@ -681,9 +698,6 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
|
|||||||
static void
|
static void
|
||||||
gtk_text_tag_init (GtkTextTag *text_tag)
|
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 ();
|
text_tag->values = gtk_text_attributes_new ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1942,7 +1956,9 @@ gtk_text_attributes_new (void)
|
|||||||
values->language = gtk_get_default_language ();
|
values->language = gtk_get_default_language ();
|
||||||
|
|
||||||
values->font_scale = 1.0;
|
values->font_scale = 1.0;
|
||||||
|
|
||||||
|
values->editable = TRUE;
|
||||||
|
|
||||||
return values;
|
return values;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user