From 3860befb8776c47b680f15256326a699275ce533 Mon Sep 17 00:00:00 2001 From: rbuj Date: Tue, 15 Mar 2022 15:21:49 +0100 Subject: clock: cast from function call of type 'gdouble' to non-matching type --- applets/clock/clock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'applets/clock') diff --git a/applets/clock/clock.c b/applets/clock/clock.c index a9250aec..d87224f1 100644 --- a/applets/clock/clock.c +++ b/applets/clock/clock.c @@ -1819,11 +1819,11 @@ output_cb (GtkSpinButton *spin, { GtkAdjustment *adj; gchar *text; - int value; + gdouble value; adj = gtk_spin_button_get_adjustment (spin); - value = (int) gtk_adjustment_get_value (adj); - text = g_strdup_printf ("%02d", value); + value = gtk_adjustment_get_value (adj); + text = g_strdup_printf ("%02.0f", value); gtk_entry_set_text (GTK_ENTRY (spin), text); g_free (text); -- cgit v1.2.1