[rhythmbox] rb-cell-renderer-pixbuf: Remove unused computation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] rb-cell-renderer-pixbuf: Remove unused computation
- Date: Sat, 5 Feb 2011 13:52:33 +0000 (UTC)
commit d2d15d657ec74ad0a48f8b20b116d5791a021980
Author: Bastien Nocera <hadess hadess net>
Date: Sat Feb 5 03:37:16 2011 +0000
rb-cell-renderer-pixbuf: Remove unused computation
widgets/rb-cell-renderer-pixbuf.c | 16 ----------------
1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/widgets/rb-cell-renderer-pixbuf.c b/widgets/rb-cell-renderer-pixbuf.c
index e06be67..3c95685 100644
--- a/widgets/rb-cell-renderer-pixbuf.c
+++ b/widgets/rb-cell-renderer-pixbuf.c
@@ -262,24 +262,8 @@ rb_cell_renderer_pixbuf_render (GtkCellRenderer *cell,
RBCellRendererPixbuf *cellpixbuf = (RBCellRendererPixbuf *) cell;
GdkRectangle pix_rect;
GdkRectangle draw_rect;
- GtkStateType state;
gint xpad, ypad;
- if ((flags & GTK_CELL_RENDERER_SELECTED) == GTK_CELL_RENDERER_SELECTED)
- {
- if (gtk_widget_has_focus (widget))
- state = GTK_STATE_SELECTED;
- else
- state = GTK_STATE_ACTIVE;
- }
- else
- {
- if (gtk_widget_get_state (widget) == GTK_STATE_INSENSITIVE)
- state = GTK_STATE_INSENSITIVE;
- else
- state = GTK_STATE_NORMAL;
- }
-
if (!cellpixbuf->pixbuf)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]