Diff of /trunk/src/custom_type_renderer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 204 by harbaum, Tue Nov 17 09:07:17 2009 UTC revision 205 by harbaum, Mon Nov 23 20:12:22 2009 UTC
# Line 297  custom_cell_renderer_type_render (GtkCel Line 297  custom_cell_renderer_type_render (GtkCel
297    gdk_cairo_rectangle(cr, &draw_rect);    gdk_cairo_rectangle(cr, &draw_rect);
298    cairo_fill(cr);    cairo_fill(cr);
299    
300    /* just a note, nothing else */    /* add "special" addon. the order of these test results in */
301      /* a priority */
302    GdkPixbuf *addon = NULL;    GdkPixbuf *addon = NULL;
303    if((celltype->type & 7) == 4)      // only note is set    if(celltype->type & 8)             // mine is set
304      addon = icon_get(CUSTOM_ICON_TYPE, 13);      addon = icon_get(CUSTOM_ICON_TYPE, 14);
305    if((celltype->type & 7) == 5)      // only note and override are set    else if(celltype->type & 2)        // solved is set
     addon = icon_get(CUSTOM_ICON_TYPE, 11);  
   if(celltype->type & 2)             // solved is set  
306      addon = icon_get(CUSTOM_ICON_TYPE, 12);      addon = icon_get(CUSTOM_ICON_TYPE, 12);
307      else if(celltype->type & 1)        // override is set
308        addon = icon_get(CUSTOM_ICON_TYPE, 11);
309      else if(celltype->type & 4)        // note is set
310        addon = icon_get(CUSTOM_ICON_TYPE, 13);
311    
312    /* if override (and not found) is set */    /* if override (and not found) is set */
313    if(addon) {    if(addon) {

Legend:
Removed from v.204  
changed lines
  Added in v.205