demos: Update testpixbuf-scale demo for adjustment sealing

This commit is contained in:
Benjamin Otte 2011-01-05 22:14:32 +01:00
parent a28be2cc6c
commit c731e1ce0a

View File

@ -24,9 +24,9 @@ set_interp_type (GtkWidget *widget, gpointer data)
void
overall_changed_cb (GtkAdjustment *adjustment, gpointer data)
{
if (adjustment->value != overall_alpha)
if (gtk_adjustment_get_value (adjustment) != overall_alpha)
{
overall_alpha = adjustment->value;
overall_alpha = gtk_adjustment_get_value (adjustment);
gtk_widget_queue_draw (darea);
}
}