summary refs log tree commit diff stats
path: root/src/fe-gtk/setup.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-11-10 18:26:45 +0100
committerBerke Viktor <bviktor@hexchat.org>2012-11-10 18:26:45 +0100
commited970381fb914c413b88718bb7756b0f1282cfad (patch)
tree348e76fe96a72d46950fe7aa21f71e1c84ab09d0 /src/fe-gtk/setup.c
parent584b89bb022c3cb22b45b1285652bb3b5f33ed81 (diff)
Eliminate some more warnings and hide less warnings in VS
Diffstat (limited to 'src/fe-gtk/setup.c')
-rw-r--r--src/fe-gtk/setup.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index d3964557..7f6e37ff 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -837,9 +837,12 @@ setup_hscale_cb (GtkHScale *wid, const setting *set)
 {
 	static int tag = 0;
 
-	setup_set_int (&setup_prefs, set, gtk_range_get_value(GTK_RANGE(wid)));
-	if(tag == 0)
-		tag = g_idle_add ((GSourceFunc)setup_apply_tint, &tag);
+	setup_set_int (&setup_prefs, set, (int) gtk_range_get_value (GTK_RANGE (wid)));
+
+	if (tag == 0)
+	{
+		tag = g_idle_add ((GSourceFunc) setup_apply_tint, &tag);
+	}
 }
 
 static void