Victor Aurélio
Victor Aurélio

Reputation: 2555

Attributes to multiple fields

Is it possible add one attribute for multiple fields ?

For instance:

public class MainWindow : ApplicationWindow {
    [GtkChild]
    private GtkScale in_amp_scale;
    private GtkScale in_stereo_scale;
    private HVMeter inmeter_l;
    private HVMeter inmeter_r;
    // ...
}

In that case apply the GtkChild attribute to every field below it ?

Upvotes: 1

Views: 85

Answers (1)

lethalman
lethalman

Reputation: 2019

(Vala dev here). No it's no possible. You have to put the attribute on every field.

Upvotes: 1

Related Questions