I am making an interface in which there are four GTK widgets scale. Each scale represents a percentage. And all four scales depend on each others. Which means that the sum of all 4 scales shouldn't exceed 100%. In order to do this, I need to get the chosen value of the scale. However the gtk_range_get_value function gets the value only during the compilation of my program and is then always equal to 0! Is there any way for getting the value AFTER chosing it? or any other way?