summaryrefslogtreecommitdiff
path: root/gtk/gtkcellrenderertext.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2006-03-26 06:03:31 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2006-03-26 06:03:31 +0000
commit0d04bd7fec32f2615caf09b786fea12992c20fe9 (patch)
tree7f0ffe57aa15083b444c0637caa3aaf9d3c0b63f /gtk/gtkcellrenderertext.c
parentd828e5043f1b62a82bf2a90e96065a01a0f3befd (diff)
downloadgtk+-0d04bd7fec32f2615caf09b786fea12992c20fe9.tar.gz
Small optimization
Diffstat (limited to 'gtk/gtkcellrenderertext.c')
-rw-r--r--gtk/gtkcellrenderertext.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index 2ff8c52586..a5aca6e192 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -689,14 +689,7 @@ gtk_cell_renderer_text_get_property (GObject *object,
break;
case PROP_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);
- }
+ g_value_take_string (value, pango_font_description_to_string (celltext->font);
break;
case PROP_FONT_DESC: