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:
parent
1c73b3c809
commit
0660969a64
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
2007-07-28 Thomas Wood <thos@gnome.org>
|
||||||
|
|
||||||
* wp-cellrenderer.c: (cell_renderer_wallpaper_render): c89 fix and add 1px
|
* wp-cellrenderer.c: (cell_renderer_wallpaper_render): c89 fix and add 1px
|
||||||
|
|
|
@ -75,6 +75,10 @@ cell_renderer_wallpaper_render (GtkCellRenderer *cell,
|
||||||
w = background_area->width;
|
w = background_area->width;
|
||||||
h = background_area->height;
|
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 ((flags & GTK_CELL_RENDERER_SELECTED) != 0)
|
||||||
{
|
{
|
||||||
if (GTK_WIDGET_HAS_FOCUS (widget))
|
if (GTK_WIDGET_HAS_FOCUS (widget))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue