| 244 return; |
244 return; |
| 245 |
245 |
| 246 width = cell_area->width; |
246 width = cell_area->width; |
| 247 height = cell_area->height; |
247 height = cell_area->height; |
| 248 |
248 |
| 249 #if GTK_CHECK_VERSION(2,6,0) |
|
| 250 if (!cell->sensitive) |
249 if (!cell->sensitive) |
| 251 state = GTK_STATE_INSENSITIVE; |
250 state = GTK_STATE_INSENSITIVE; |
| 252 #else |
|
| 253 if (GTK_WIDGET_STATE(widget) == GTK_STATE_INSENSITIVE) |
|
| 254 state = GTK_STATE_INSENSITIVE; |
|
| 255 #endif |
|
| 256 else if (flags & GTK_CELL_RENDERER_PRELIT) |
251 else if (flags & GTK_CELL_RENDERER_PRELIT) |
| 257 state = GTK_STATE_PRELIGHT; |
252 state = GTK_STATE_PRELIGHT; |
| 258 else if (GTK_WIDGET_HAS_FOCUS (widget) && flags & GTK_CELL_RENDERER_SELECTED) |
253 else if (GTK_WIDGET_HAS_FOCUS (widget) && flags & GTK_CELL_RENDERER_SELECTED) |
| 259 state = GTK_STATE_ACTIVE; |
254 state = GTK_STATE_ACTIVE; |
| 260 else |
255 else |