Skip to content

Commit

Permalink
show active marks in image overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Dec 14, 2007
1 parent 9ccee7c commit 69f60d9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/image-overlay.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,21 +187,21 @@ static GdkPixbuf *image_osd_info_render(ImageWindow *imd)
g_free(name_escaped);

{
GString *buf = g_string_sized_new(FILEDATA_MARKS_SIZE * 2);
FileData *fd = image_get_fd(imd);

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);

}
for (i=0; i < FILEDATA_MARKS_SIZE; i++)
{

g_string_append_printf(buf, fd->marks[i] ? " <span background='#FF00FF'>%c</span>" : " %c", '1' + 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, text2, -1);
g_free(text2);
g_free(text);
g_free(text);

pango_layout_get_pixel_size(layout, &width, &height);

Expand Down

0 comments on commit 69f60d9

Please sign in to comment.