summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-11-23 11:28:29 +0100
committerVictor Kareh <[email protected]>2022-03-23 09:47:06 -0400
commite81e15ed093783d496b5165bfacc021b5392020c (patch)
tree9d1398430ae13b6cffa08e67255464b0fe74a7f1 /src
parent8641465b9d2e406cdc56d0a3955be231aba34a5e (diff)
downloadmate-terminal-e81e15ed093783d496b5165bfacc021b5392020c.tar.bz2
mate-terminal-e81e15ed093783d496b5165bfacc021b5392020c.tar.xz
terminal-util: Remove build warning -Wbad-function-cast
Diffstat (limited to 'src')
-rw-r--r--src/terminal-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/terminal-util.c b/src/terminal-util.c
index 338ded3..ce97f41 100644
--- a/src/terminal-util.c
+++ b/src/terminal-util.c
@@ -868,9 +868,9 @@ widget_change_notify_cb (PropertyChange *change)
}
else if (GTK_IS_SPIN_BUTTON (widget))
{
- int value;
+ gint value;
- value = (int) gtk_spin_button_get_value (GTK_SPIN_BUTTON (widget));
+ value = gtk_spin_button_get_value_as_int (GTK_SPIN_BUTTON (widget));
g_object_set (object, object_prop, value, NULL);
}
else if (GTK_IS_ENTRY (widget))