/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to branchview/graphcell.py

  • Committer: Daniel Schierbeck
  • Date: 2008-04-02 22:39:13 UTC
  • mto: This revision was merged to the branch mainline in revision 481.
  • Revision ID: daniel.schierbeck@gmail.com-20080402223913-1elzz7whd76fw08d
Made the line graph be stroked with white instead of filled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
 
172
172
        if flags & gtk.CELL_RENDERER_SELECTED:
173
173
            ctx.set_source_rgb(1.0, 1.0, 1.0)
174
 
        else:
175
 
            self.set_colour(ctx, colour, 0.0, 0.5)
 
174
            ctx.set_line_width(box_size / 4)
 
175
            ctx.stroke_preserve()
 
176
            ctx.set_line_width(box_size / 8)
 
177
 
 
178
        self.set_colour(ctx, colour, 0.0, 0.5)
176
179
        ctx.stroke_preserve()
177
180
 
178
 
        if flags & gtk.CELL_RENDERER_SELECTED:
179
 
            ctx.set_source_rgb(0.8, 0.8, 0.8)
180
 
        else:
181
 
            self.set_colour(ctx, colour, 0.5, 1.0)
 
181
        self.set_colour(ctx, colour, 0.5, 1.0)
182
182
        ctx.fill()
183
183
 
184
184
        self.render_tags(ctx, widget.create_pango_context(), cell_area, box_size)
209
209
                ctx.curve_to(startx, mid - height / 5,
210
210
                             startx, mid - height / 5,
211
211
                             startx + (endx - startx) / 2, mid)
212
 
                
 
212
                 
213
213
                ctx.curve_to(endx, mid + height / 5,
214
214
                             endx, mid + height / 5 ,
215
215
                             endx, mid + height / 2)
216
 
                
 
216
 
217
217
        if flags & gtk.CELL_RENDERER_SELECTED:
218
218
            ctx.set_source_rgb(1.0, 1.0, 1.0)
219
 
        else:
220
 
            self.set_colour(ctx, colour, 0.0, 0.65)
 
219
            ctx.set_line_width(box_size / 5)
 
220
            ctx.stroke_preserve()
 
221
            ctx.set_line_width(box_size / 8)
 
222
 
 
223
        self.set_colour(ctx, colour, 0.0, 0.65)
 
224
 
221
225
        ctx.stroke()
222
226
 
223
227
    def render_tags(self, ctx, pango_ctx, cell_area, box_size):