summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-03-15 15:21:49 +0100
committerLuke from DC <[email protected]>2022-03-18 05:32:31 +0000
commit3860befb8776c47b680f15256326a699275ce533 (patch)
treed2c62f0a5c9deed1ac707bce24ce9addf1a8c287
parentc4602959df4f2856e49ebf6b6c7a03be00d311f4 (diff)
downloadmate-panel-3860befb8776c47b680f15256326a699275ce533.tar.bz2
mate-panel-3860befb8776c47b680f15256326a699275ce533.tar.xz
clock: cast from function call of type 'gdouble' to non-matching type
-rw-r--r--applets/clock/clock.c6
1 files changed, 3 insertions, 3 deletions
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);