Skip to content

Commit 0c9de35

Browse files
committed
Grid: GTK4 prep
1 parent 43119c2 commit 0c9de35

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Widgets/calendar/Grid.vala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ namespace DateTime.Widgets {
6262
};
6363

6464
var week_sep_revealer = new Gtk.Revealer () {
65-
transition_type = Gtk.RevealerTransitionType.SLIDE_LEFT
65+
transition_type = Gtk.RevealerTransitionType.SLIDE_LEFT,
66+
child = week_sep
6667
};
67-
week_sep_revealer.add (week_sep);
6868

6969
hexpand = true;
7070
attach (week_sep_revealer, 1, 1, 1, 6);
@@ -255,9 +255,9 @@ namespace DateTime.Widgets {
255255
week_label.get_style_context ().add_class (Granite.STYLE_CLASS_H4_LABEL);
256256

257257
week_labels[c] = new Gtk.Revealer () {
258-
transition_type = Gtk.RevealerTransitionType.SLIDE_LEFT
258+
transition_type = Gtk.RevealerTransitionType.SLIDE_LEFT,
259+
child = week_label
259260
};
260-
week_labels[c].add (week_label);
261261
week_labels[c].show_all ();
262262

263263
DateTime.Indicator.settings.bind ("show-weeks", week_labels[c], "reveal-child", GLib.SettingsBindFlags.DEFAULT);

0 commit comments

Comments
 (0)