Skip to content

Commit b31be11

Browse files
authored
Demo: check toggles by default (#860)
1 parent b26f52b commit b31be11

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

demo/Views/ControlsView.vala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,16 @@ public class ControlsView : DemoPage {
99

1010
var textbutton = new Gtk.Button.with_label ("Gtk.Button.with_label ()");
1111

12-
var toggle_button = new Gtk.ToggleButton.with_label ("Gtk.ToggleButton.with_label ()");
12+
var toggle_button = new Gtk.ToggleButton.with_label ("Gtk.ToggleButton.with_label ()") {
13+
active = true
14+
};
1315

1416
var imagebutton = new Gtk.Button.from_icon_name ("folder-pictures-symbolic") {
1517
tooltip_text = "Gtk.Button.from_icon_name ()"
1618
};
1719

1820
var toggle_imagebutton = new Gtk.ToggleButton () {
21+
active = true,
1922
icon_name = "eye-open-negative-filled-symbolic",
2023
tooltip_text = "Gtk.ToggleButton.icon_name"
2124
};

0 commit comments

Comments
 (0)