• Kristian Rietveld's avatar
    This commit adds a cell_background property for cell renderers. With this · cb3c5cc1
    Kristian Rietveld authored
    Tue Apr 23 18:35:34 2002  Kristian Rietveld  <kris@gtk.org>
    
            This commit adds a cell_background property for cell renderers. With
            this property you can make your TreeView look incredibly ugly.
    
            * gtk/gtkcellrenderer.c: add cell_background, cell_background_gdk and
            cell_background_set properties,
            (set_cell_bg_color): new function,
            (gtk_cell_renderer_get_property), (gtk_cell_renderer_set_property):
            support for new properties,
            (gtk_cell_renderer_render): render a background when set.
    
            * gtk/gtkcellrenderer.h: add cell_background_set and cell_background
            fields.
    
            * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
            when rendering, pass in just the background_area of the cell and not
            the background_area of the entire column.
    cb3c5cc1
gtkcellrenderer.c 18 KB