Commit 2afa5510 authored by Anders Carlsson's avatar Anders Carlsson Committed by Anders Carlsson

Take into account the xpad and ypad when calculating the width and the

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 cell.
parent c042389a
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment