- gtk_range_set_range((GtkRange*)m_widget, minValue, maxValue);
- gtk_range_set_increments((GtkRange*)m_widget, 1, (maxValue - minValue + 9) / 10);
+ gtk_range_set_range(GTK_RANGE (m_widget), minValue, maxValue);
+ gtk_range_set_increments(GTK_RANGE (m_widget), 1, (maxValue - minValue + 9) / 10);