summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-2-06
-rw-r--r--ChangeLog.pre-2-106
-rw-r--r--ChangeLog.pre-2-26
-rw-r--r--ChangeLog.pre-2-46
-rw-r--r--ChangeLog.pre-2-66
-rw-r--r--ChangeLog.pre-2-86
-rw-r--r--gtk/gtkcellrendererpixbuf.c5
8 files changed, 46 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 560db3b1d..abd83a849 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-07-13 Anders Carlsson <andersca@codefactory.se>
+
+ * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
+ into account the xpad and ypad when calculating the width and the
+ height of the pixbuf cel.
+
Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0
index 560db3b1d..abd83a849 100644
--- a/ChangeLog.pre-2-0
+++ b/ChangeLog.pre-2-0
@@ -1,3 +1,9 @@
+2001-07-13 Anders Carlsson <andersca@codefactory.se>
+
+ * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
+ into account the xpad and ypad when calculating the width and the
+ height of the pixbuf cel.
+
Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index 560db3b1d..abd83a849 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -1,3 +1,9 @@
+2001-07-13 Anders Carlsson <andersca@codefactory.se>
+
+ * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
+ into account the xpad and ypad when calculating the width and the
+ height of the pixbuf cel.
+
Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2
index 560db3b1d..abd83a849 100644
--- a/ChangeLog.pre-2-2
+++ b/ChangeLog.pre-2-2
@@ -1,3 +1,9 @@
+2001-07-13 Anders Carlsson <andersca@codefactory.se>
+
+ * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
+ into account the xpad and ypad when calculating the width and the
+ height of the pixbuf cel.
+
Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4
index 560db3b1d..abd83a849 100644
--- a/ChangeLog.pre-2-4
+++ b/ChangeLog.pre-2-4
@@ -1,3 +1,9 @@
+2001-07-13 Anders Carlsson <andersca@codefactory.se>
+
+ * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
+ into account the xpad and ypad when calculating the width and the
+ height of the pixbuf cel.
+
Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6
index 560db3b1d..abd83a849 100644
--- a/ChangeLog.pre-2-6
+++ b/ChangeLog.pre-2-6
@@ -1,3 +1,9 @@
+2001-07-13 Anders Carlsson <andersca@codefactory.se>
+
+ * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
+ into account the xpad and ypad when calculating the width and the
+ height of the pixbuf cel.
+
Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8
index 560db3b1d..abd83a849 100644
--- a/ChangeLog.pre-2-8
+++ b/ChangeLog.pre-2-8
@@ -1,3 +1,9 @@
+2001-07-13 Anders Carlsson <andersca@codefactory.se>
+
+ * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Take
+ into account the xpad and ypad when calculating the width and the
+ height of the pixbuf cel.
+
Thu Jul 12 18:29:40 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkradiomenuitem.[ch] (gtk_radio_menu_item_group):
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 0bb2cb8c9..66649e444 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -248,9 +248,12 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
&pix_rect.y,
&pix_rect.width,
&pix_rect.height);
+
pix_rect.x += cell_area->x;
pix_rect.y += cell_area->y;
-
+ pix_rect.width -= cell->xpad * 2;
+ pix_rect.height -= cell->ypad * 2;
+
if (gdk_rectangle_intersect (cell_area, &pix_rect, &draw_rect))
gdk_pixbuf_render_to_drawable_alpha (pixbuf,
window,