Fix tiny miscalculation of the tag name rendering position

This commit is contained in:
Michael Natterer 2009-07-10 04:20:54 +02:00
parent bd00ac3891
commit 5a26780ed9
1 changed files with 12 additions and 2 deletions

View File

@ -805,12 +805,22 @@ gimp_tag_popup_list_expose (GtkWidget *widget,
pango_renderer_draw_layout (renderer, popup->layout,
(tag_data->bounds.x +
GIMP_TAG_POPUP_PADDING) * PANGO_SCALE +
GIMP_TAG_POPUP_PADDING,
GIMP_TAG_POPUP_PADDING) * PANGO_SCALE,
(tag_data->bounds.y -
popup->scroll_y +
GIMP_TAG_POPUP_PADDING) * PANGO_SCALE);
#if 0
gtk_paint_layout (style, window,
tag_data->state,
TRUE,
&event->area, widget, NULL,
tag_data->bounds.x + GIMP_TAG_POPUP_PADDING,
tag_data->bounds.y - popup->scroll_y +
GIMP_TAG_POPUP_PADDING,
popup->layout);
#endif
if (tag_data == popup->prelight &&
tag_data->state != GTK_STATE_INSENSITIVE &&
! popup->single_select_disabled)