178
179
which set the slider to 0 or 100. Ignore all other events.
183
185
g_return_val_if_fail (IS_VOLUME_WIDGET (user_data), FALSE);
184
186
VolumeWidget* mitem = VOLUME_WIDGET(user_data);
185
187
VolumeWidgetPrivate * priv = VOLUME_WIDGET_GET_PRIVATE(mitem);
187
189
gdouble current_value = CLAMP(gtk_range_get_value(GTK_RANGE(slider)), 0, 100);
189
191
if(current_value == 0 || current_value == 100){
190
192
volume_widget_update(mitem, current_value);