Don't draw the selection indicator if width is -1

2007-07-28  Thomas Wood  <thos@gnome.org>

	* wp-cellrenderer.c: (cell_renderer_wallpaper_render): Don't draw the
	selection indicator if width is -1

svn path=/trunk/; revision=7912
This commit is contained in:
Thomas Wood 2007-07-28 12:47:53 +00:00 committed by Thomas Wood
parent 1c73b3c809
commit 0660969a64
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-07-28 Thomas Wood <thos@gnome.org>
* wp-cellrenderer.c: (cell_renderer_wallpaper_render): Don't draw the
selection indicator if width is -1
2007-07-28 Thomas Wood <thos@gnome.org>
* wp-cellrenderer.c: (cell_renderer_wallpaper_render): c89 fix and add 1px

View file

@ -75,6 +75,10 @@ cell_renderer_wallpaper_render (GtkCellRenderer *cell,
w = background_area->width;
h = background_area->height;
/* sometimes width is -1 - not sure what to do here */
if (w == -1)
return;
if ((flags & GTK_CELL_RENDERER_SELECTED) != 0)
{
if (GTK_WIDGET_HAS_FOCUS (widget))