[gtk+] image: take misc padding into account when calculating x/y draw coords
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] image: take misc padding into account when calculating x/y draw coords
- Date: Mon, 12 Dec 2011 11:38:29 +0000 (UTC)
commit 1e23a74a950b4db9d4d2bfa4a0306ffe90f710e2
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Dec 12 12:30:27 2011 +0100
image: take misc padding into account when calculating x/y draw coords
This fixes the misc-alignment.ui reftest.
gtk/gtkimage.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c
index 845dee2..519dfbd 100644
--- a/gtk/gtkimage.c
+++ b/gtk/gtkimage.c
@@ -1305,7 +1305,7 @@ gtk_image_draw (GtkWidget *widget,
gtk_misc_get_alignment (misc, &xalign, &yalign);
gtk_misc_get_padding (misc, &xpad, &ypad);
- _gtk_icon_helper_get_size (priv->icon_helper, context, &width, &height);
+ gtk_image_get_preferred_size (image, &width, &height);
if (gtk_widget_get_direction (widget) != GTK_TEXT_DIR_LTR)
xalign = 1.0 - xalign;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]