diff options
author | rbuj <[email protected]> | 2020-11-16 12:56:57 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-11-25 12:50:28 +0100 |
commit | 4de3e8ae87463027e5365018505748353dc44125 (patch) | |
tree | ab9bbcfe1b10c0c0b82def1bf6e25aaaacf3c059 /baobab/src/baobab-cell-renderer-progress.c | |
parent | afec076d38599ecf8005a0e645d65f532dad720e (diff) | |
download | mate-utils-4de3e8ae87463027e5365018505748353dc44125.tar.bz2 mate-utils-4de3e8ae87463027e5365018505748353dc44125.tar.xz |
baobab: Fix conversion warnings
Diffstat (limited to 'baobab/src/baobab-cell-renderer-progress.c')
-rw-r--r-- | baobab/src/baobab-cell-renderer-progress.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/baobab/src/baobab-cell-renderer-progress.c b/baobab/src/baobab-cell-renderer-progress.c index 057c7e02..c8bf3ee9 100644 --- a/baobab/src/baobab-cell-renderer-progress.c +++ b/baobab/src/baobab-cell-renderer-progress.c @@ -123,13 +123,13 @@ baobab_cell_renderer_progress_get_size (GtkCellRenderer *cell, gtk_cell_renderer_get_alignment (cell, &xalign, &yalign); if (x_offset) { - *x_offset = xalign * (cell_area->width - calc_width); + *x_offset = (gint) (xalign * (gfloat) (cell_area->width - calc_width)); *x_offset = MAX (*x_offset, 0); } if (y_offset) { - *y_offset = yalign * (cell_area->height - calc_height); + *y_offset = (gint) (yalign * (gfloat) (cell_area->height - calc_height)); *y_offset = MAX (*y_offset, 0); } } @@ -223,7 +223,7 @@ baobab_cell_renderer_progress_render (GtkCellRenderer *cell, cairo_set_source_rgb (cr, 1, 1, 1); cairo_fill (cr); - perc_w = w * MAX (0, cellprogress->priv->perc) / 100; + perc_w = (gint) (w * MAX (0, cellprogress->priv->perc) / 100); cairo_rectangle (cr, is_rtl ? (x + w - perc_w) : x, y, perc_w, h); set_color_according_to_perc (cr, cellprogress->priv->perc); |