Small optimization
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2006-03-26 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcellrenderertext.c (gtk_cell_render_text_get_property):
|
||||||
|
Avoid an unnecessary strdup. (#336013)
|
||||||
|
|
||||||
2006-03-24 Matthias Clasen <mclasen@redhat.com>
|
2006-03-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktextview.c (gtk_text_view_value_changed): Don't call
|
* gtk/gtktextview.c (gtk_text_view_value_changed): Don't call
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2006-03-26 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkcellrenderertext.c (gtk_cell_render_text_get_property):
|
||||||
|
Avoid an unnecessary strdup. (#336013)
|
||||||
|
|
||||||
2006-03-24 Matthias Clasen <mclasen@redhat.com>
|
2006-03-24 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtktextview.c (gtk_text_view_value_changed): Don't call
|
* gtk/gtktextview.c (gtk_text_view_value_changed): Don't call
|
||||||
|
@ -689,14 +689,7 @@ gtk_cell_renderer_text_get_property (GObject *object,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_FONT:
|
case PROP_FONT:
|
||||||
{
|
g_value_take_string (value, pango_font_description_to_string (celltext->font);
|
||||||
/* FIXME GValue imposes a totally gratuitous string copy
|
|
||||||
* here, we could just hand off string ownership
|
|
||||||
*/
|
|
||||||
gchar *str = pango_font_description_to_string (celltext->font);
|
|
||||||
g_value_set_string (value, str);
|
|
||||||
g_free (str);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_FONT_DESC:
|
case PROP_FONT_DESC:
|
||||||
|
Reference in New Issue
Block a user