src/gtkcellrendererprogress.c

changeset 7705
7047050e02eb
parent 4559
e4f9b73ab9c0
child 7738
ebb766ef2146
equal deleted inserted replaced
7704:293ead11ac0c 7705:7047050e02eb
223 { 223 {
224 gint calc_width; 224 gint calc_width;
225 gint calc_height; 225 gint calc_height;
226 226
227 calc_width = (gint) cell->xpad * 2 + 50; 227 calc_width = (gint) cell->xpad * 2 + 50;
228 calc_height = (gint) cell->ypad * 2 + 10; 228 calc_height = (gint) cell->ypad * 2 + 12;
229 229
230 if (width) 230 if (width)
231 *width = calc_width; 231 *width = calc_width;
232 232
233 if (height) 233 if (height)
287 width - 1, height - 1); 287 width - 1, height - 1);
288 gtk_paint_box (widget->style, 288 gtk_paint_box (widget->style,
289 window, 289 window,
290 state, GTK_SHADOW_OUT, 290 state, GTK_SHADOW_OUT,
291 NULL, widget, "bar", 291 NULL, widget, "bar",
292 cell_area->x + x_offset + cell->xpad, 292 cell_area->x + x_offset + cell->xpad + 1,
293 cell_area->y + y_offset + cell->ypad, 293 cell_area->y + y_offset + cell->ypad + 1,
294 width * cellprogress->progress, 294 (width - 3) * cellprogress->progress,
295 height - 1); 295 height - 3);
296 } 296 }

mercurial