Remove unused pixels and rowstride variables.

2002-01-07  Anders Carlsson  <andersca@gnu.org>

	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
	unused pixels and rowstride variables.
	(gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
This commit is contained in:
Anders Carlsson 2002-01-07 08:02:23 +00:00 committed by Anders Carlsson
parent 1901d4ebd7
commit 8ab98f3a58
8 changed files with 42 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2002-01-07 Anders Carlsson <andersca@gnu.org>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
unused pixels and rowstride variables.
(gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
* gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset

View File

@ -1,3 +1,9 @@
2002-01-07 Anders Carlsson <andersca@gnu.org>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
unused pixels and rowstride variables.
(gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
* gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset

View File

@ -1,3 +1,9 @@
2002-01-07 Anders Carlsson <andersca@gnu.org>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
unused pixels and rowstride variables.
(gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
* gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset

View File

@ -1,3 +1,9 @@
2002-01-07 Anders Carlsson <andersca@gnu.org>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
unused pixels and rowstride variables.
(gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
* gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset

View File

@ -1,3 +1,9 @@
2002-01-07 Anders Carlsson <andersca@gnu.org>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
unused pixels and rowstride variables.
(gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
* gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset

View File

@ -1,3 +1,9 @@
2002-01-07 Anders Carlsson <andersca@gnu.org>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
unused pixels and rowstride variables.
(gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
* gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset

View File

@ -1,3 +1,9 @@
2002-01-07 Anders Carlsson <andersca@gnu.org>
* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_render): Remove
unused pixels and rowstride variables.
(gtk_cell_renderer_pixbuf_get_size): Check for non-NULL width.
Mon Jan 7 08:48:23 2002 Tim Janik <timj@gtk.org>
* gtk/gtkdnd.c (gtk_drag_find_widget): don't forget to offset

View File

@ -288,8 +288,6 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
{
GtkCellRendererPixbuf *cellpixbuf = (GtkCellRendererPixbuf *) cell;
GdkPixbuf *pixbuf;
guchar *pixels;
gint rowstride;
GdkRectangle pix_rect;
GdkRectangle draw_rect;
@ -307,9 +305,6 @@ gtk_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
if (!pixbuf)
return;
rowstride = gdk_pixbuf_get_rowstride (pixbuf);
pixels = gdk_pixbuf_get_pixels (pixbuf);
gtk_cell_renderer_pixbuf_get_size (cell, widget, cell_area,
&pix_rect.x,
&pix_rect.y,