Skip to content

Commit 3acf3e1

Browse files
committed
progress on the window
1 parent 4a9d886 commit 3acf3e1

File tree

2 files changed

+50
-4
lines changed

2 files changed

+50
-4
lines changed

src/window.blp

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,57 @@ template $ShutterWindow: ApplicationWindow {
44
default-width: 600;
55
default-height: 300;
66

7-
child: Label label {
7+
child: Box {
8+
orientation: vertical;
9+
10+
Box {
11+
Label {
12+
label: "Hello";
13+
}
14+
15+
styles [
16+
"toolbar",
17+
]
18+
}
19+
20+
Notebook {
21+
vexpand: true;
22+
23+
Label {
24+
label: "Hello";
25+
}
26+
[tab]
27+
Label {
28+
label: "tab";
29+
}
30+
31+
Box{
32+
orientation: vertical;
33+
Label {
34+
label: "World";
35+
}
36+
Label {
37+
label: "Second line";
38+
}
39+
}
40+
[tab]
41+
Label {
42+
label: "tab2";
43+
}
44+
}
45+
46+
Box {
47+
Label {
48+
label: "Status bar?";
49+
}
50+
}
51+
}
52+
53+
/* child: Label label {
854
label: "Hello, World!";
955

1056
styles [
1157
"title-1",
1258
]
13-
};
59+
}*/;
1460
}

src/window.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ mod imp {
3131
// Template widgets
3232
//#[template_child]
3333
//pub header_bar: TemplateChild<gtk::HeaderBar>,
34-
#[template_child]
35-
pub label: TemplateChild<gtk::Label>,
34+
//#[template_child]
35+
//pub label: TemplateChild<gtk::Label>,
3636
}
3737

3838
#[glib::object_subclass]

0 commit comments

Comments
 (0)