static void mw_preview_toggle_callback (GtkWidget *widget, gpointer data) { gimp_toggle_button_update (widget, data); sinus_do_preview (NULL); }
static void alienmap2_toggle_update (GtkWidget *widget, gpointer data) { gimp_toggle_button_update (widget, data); alienmap2_set_sensitive (); gimp_preview_invalidate (GIMP_PREVIEW (preview)); }
static void vpropagate_toggle_button_update (GtkWidget *widget, gpointer data) { gint i, result; gimp_toggle_button_update (widget, data); for (i = result = 0; i < 4; i++) result |= (direction_mask_vec[i] ? 1 : 0) << i; vpvals.direction_mask = result; vpvals.propagating_channel = ((propagate_alpha ? PROPAGATING_ALPHA : 0) | (propagate_value ? PROPAGATING_VALUE : 0)); gimp_preview_invalidate (GIMP_PREVIEW (preview)); }