summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2018-03-11 13:55:23 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2018-03-11 13:55:23 +0200
commit453faa20b262f4bb20fa0b5fd9389a7fb16e0921 (patch)
treeacc0a61fd3991d1418ca74d5d0aa62a59d7e1bfb
parent19101201c42f1060d7eeb205152b89d2c636f087 (diff)
downloadmetacity-453faa20b262f4bb20fa0b5fd9389a7fb16e0921.tar.gz
metaaccellabel: avoid implicit conversion warning
warning: implicit conversion from ‘gfloat {aka float}’ to ‘double’ to match other operand of binary expression [-Wdouble-promotion]
-rw-r--r--src/ui/metaaccellabel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/metaaccellabel.c b/src/ui/metaaccellabel.c
index 48f562e7..8e6f2a40 100644
--- a/src/ui/metaaccellabel.c
+++ b/src/ui/metaaccellabel.c
@@ -258,7 +258,7 @@ meta_accel_label_draw (GtkWidget *widget,
GtkLabel *label = GTK_LABEL (widget);
gint x, y, xpad, ypad;
gint margin_start, margin_end, margin_top, margin_bottom;
- gfloat yalign;
+ gdouble yalign;
label_layout = gtk_label_get_layout (GTK_LABEL (accel_label));
yalign = gtk_label_get_yalign (GTK_LABEL (accel_label));