Beispiel #1
0
static void
direction_type_changed(GtkWidget *button,
                       NoiseSynthControls *controls)
{
    controls->args->direction = gwy_radio_button_get_value(button);
    noise_synth_invalidate(controls);
}
Beispiel #2
0
static void
direction_changed_cb(GtkWidget *radio,
                     Sphrev1DArgs *args)
{
    if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(radio)))
        return;

    args->direction = gwy_radio_button_get_value(radio);
}