summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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))