comparison pidgin/gtkcellrendererexpander.c @ 32686:3538e783b98c

Fix all deprecated GTK_WIDGET_* macros.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 09 Oct 2011 02:50:20 +0000
parents 48ea900ee72a
children
comparison
equal deleted inserted replaced
32685:457443ca22e0 32686:3538e783b98c
248 248
249 if (!cell->sensitive) 249 if (!cell->sensitive)
250 state = GTK_STATE_INSENSITIVE; 250 state = GTK_STATE_INSENSITIVE;
251 else if (flags & GTK_CELL_RENDERER_PRELIT) 251 else if (flags & GTK_CELL_RENDERER_PRELIT)
252 state = GTK_STATE_PRELIGHT; 252 state = GTK_STATE_PRELIGHT;
253 #if GTK_CHECK_VERSION(2,18,0)
254 else if (gtk_widget_has_focus (widget) && flags & GTK_CELL_RENDERER_SELECTED)
255 state = GTK_STATE_ACTIVE;
256 #else
253 else if (GTK_WIDGET_HAS_FOCUS (widget) && flags & GTK_CELL_RENDERER_SELECTED) 257 else if (GTK_WIDGET_HAS_FOCUS (widget) && flags & GTK_CELL_RENDERER_SELECTED)
254 state = GTK_STATE_ACTIVE; 258 state = GTK_STATE_ACTIVE;
259 #endif
255 else 260 else
256 state = GTK_STATE_NORMAL; 261 state = GTK_STATE_NORMAL;
257 262
258 width -= cell->xpad*2; 263 width -= cell->xpad*2;
259 height -= cell->ypad*2; 264 height -= cell->ypad*2;