Skip to content

Commit 98019c7

Browse files
authored
CalendarRow: use revealer for selection, emblem-default (#914)
1 parent f6bec33 commit 98019c7

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/Widgets/CalendarRow.vala

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,20 @@ public class CalendarRow : Gtk.Box {
6161
xalign = 0
6262
};
6363

64-
var selection_icon = new Gtk.Image.from_icon_name ("object-select-symbolic", Gtk.IconSize.MENU) {
65-
no_show_all = true,
66-
visible = false
64+
var selection_icon = new Gtk.Image.from_icon_name ("emblem-default-symbolic", MENU);
65+
66+
var selection_revealer = new Gtk.Revealer () {
67+
child = selection_icon,
68+
transition_type = CROSSFADE
6769
};
6870

6971
spacing = 6;
7072
add (calendar_color);
7173
add (calendar_name_label);
72-
add (selection_icon);
74+
add (selection_revealer);
7375

7476
bind_property ("label", calendar_name_label, "label");
75-
bind_property ("selected", selection_icon, "visible");
77+
bind_property ("selected", selection_revealer, "reveal-child", SYNC_CREATE);
7678
}
7779

7880
private void apply_source () {

0 commit comments

Comments
 (0)