changeset 133:532c42d5ed4d

compilation fix
author bruclik
date Fri, 20 Jul 2007 07:10:48 +0000
parents 661cd91e5a7e
children 9009856628f7
files src/image-overlay.c
diffstat 1 files changed, 17 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/image-overlay.c	Fri Jul 13 14:03:08 2007 +0000
+++ b/src/image-overlay.c	Fri Jul 20 07:10:48 2007 +0000
@@ -83,7 +83,7 @@
 	PangoLayout *layout;
 	const gchar *name;
 	gchar *name_escaped;
-	gchar *text;
+	gchar *text, *text2;
 	gchar *size;
 	gint n, t;
 	CollectionData *cd;
@@ -185,13 +185,24 @@
 	g_free(size);
 	g_free(ct);
 	g_free(name_escaped);
-    for (i=0; i < FILEDATA_MARKS_SIZE; i++) {
+
+	{
+        
+        GString *buf = g_string_sized_new(FILEDATA_MARKS_SIZE * 2);
         
-    
+        for (i=0; i < FILEDATA_MARKS_SIZE; i++) {
+            
+            g_string_append_printf(buf, " %c", 'a'+i);
+        }
+        text2 = g_strdup_printf("%s\n%s", text, buf->str);
+        
+    }
+        
 	layout = gtk_widget_create_pango_layout(imd->pr, NULL);
-	pango_layout_set_markup(layout, text, -1);
-	g_free(text);
-
+	pango_layout_set_markup(layout, text2, -1);
+	g_free(text2);
+    g_free(text);
+    
 	pango_layout_get_pixel_size(layout, &width, &height);
 
 	width += 10;