[gimp] Fix tiny miscalculation of the tag name rendering position



commit 5a26780ed9c06f91eaf33903c34710a48d55d8ca
Author: Michael Natterer <mitch gimp org>
Date:   Fri Jul 10 04:20:54 2009 +0200

    Fix tiny miscalculation of the tag name rendering position

 app/widgets/gimptagpopup.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimptagpopup.c b/app/widgets/gimptagpopup.c
index d07224e..086133d 100644
--- a/app/widgets/gimptagpopup.c
+++ b/app/widgets/gimptagpopup.c
@@ -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)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]