Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/ScreenCast/SelectionRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down Expand Up @@ -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
};
Expand All @@ -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;
Expand Down