Another one
This commit is contained in:
parent
0d04bd7fec
commit
25a56013c5
3 changed files with 3 additions and 5 deletions
|
|
@ -1,5 +1,6 @@
|
|||
2006-03-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktexttag.c (gtk_text_tag_get_property):
|
||||
* gtk/gtkcellrenderertext.c (gtk_cell_render_text_get_property):
|
||||
Avoid an unnecessary strdup. (#336013)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
2006-03-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtktexttag.c (gtk_text_tag_get_property):
|
||||
* gtk/gtkcellrenderertext.c (gtk_cell_render_text_get_property):
|
||||
Avoid an unnecessary strdup. (#336013)
|
||||
|
||||
|
|
|
|||
|
|
@ -1503,16 +1503,12 @@ gtk_text_tag_get_property (GObject *object,
|
|||
|
||||
case PROP_FONT:
|
||||
{
|
||||
/* FIXME GValue imposes a totally gratuitous string copy
|
||||
* here, we could just hand off string ownership
|
||||
*/
|
||||
gchar *str;
|
||||
|
||||
gtk_text_tag_ensure_font (tag);
|
||||
|
||||
str = pango_font_description_to_string (tag->values->font);
|
||||
g_value_set_string (value, str);
|
||||
g_free (str);
|
||||
g_value_take_string (value, str);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue