3 class CustomVBox : VBox
5 public IdCardWidget current_idcard { get; set; default = null; }
7 public CustomVBox (bool homogeneous, int spacing)
9 this.set_homogeneous (homogeneous);
10 this.set_spacing (spacing);
13 public void receive_expanded_event (IdCardWidget id_card_widget)
15 var list = this.get_children ();
16 foreach (Widget id_card in list)
18 if (id_card != id_card_widget)
19 ((IdCardWidget) id_card).collapse ();
21 current_idcard = id_card_widget;
24 public void add_id_card_widget (IdCardWidget id_card_widget)
26 this.pack_start (id_card_widget, false, false);
29 public void remove_id_card_widget (IdCardWidget id_card_widget)
31 this.remove (id_card_widget);