diff --git a/src/ScreenCast/SelectionRow.vala b/src/ScreenCast/SelectionRow.vala index 43cde961..95e7f1d0 100644 --- a/src/ScreenCast/SelectionRow.vala +++ b/src/ScreenCast/SelectionRow.vala @@ -12,7 +12,7 @@ public class ScreenCast.SelectionRow : Gtk.ListBoxRow { public Icon icon { get; construct; } public Gtk.CheckButton? group { get; construct; } - public Gtk.CheckButton check_button { get; construct; } + public Gtk.CheckButton check_button { get; private set; } public bool selected { get; set; default = false; } @@ -45,10 +45,6 @@ public class ScreenCast.SelectionRow : Gtk.ListBoxRow { } construct { - check_button = new Gtk.CheckButton () { - group = group - }; - var image = new Gtk.Image.from_gicon (icon) { icon_size = LARGE }; @@ -65,12 +61,16 @@ public class ScreenCast.SelectionRow : Gtk.ListBoxRow { label_box.append (title_label); var box = new Granite.Box (HORIZONTAL, NONE); - box.append (check_button); box.append (image); box.append (label_box); + check_button = new Gtk.CheckButton () { + child = box, + group = group + }; + var list_item = new Granite.ListItem () { - child = box + child = check_button }; child = list_item;