Skip to content

Commit 3c838bc

Browse files
committed
progress on menu
this requires a custom patch to gtk4 though, which they'll never accept
1 parent c753de3 commit 3c838bc

File tree

1 file changed

+71
-5
lines changed

1 file changed

+71
-5
lines changed

src/gtk/menus.blp

Lines changed: 71 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,83 @@ using Gtk 4.0;
22

33
menu menubar {
44
submenu {
5-
label: _("Aaa");
5+
label: _("_File");
6+
7+
section {
8+
item {
9+
label: _("_New");
10+
icon: "document-new";
11+
}
12+
}
13+
section {
14+
item {
15+
label: _("_Open");
16+
icon: "document-open";
17+
}
18+
submenu {
19+
label: _("Recent _Files");
20+
}
21+
}
22+
section {
23+
item {
24+
label: _("Save _As...");
25+
icon: "document-save-as";
26+
}
27+
item {
28+
label: _("E_xport to PDF...");
29+
}
30+
item {
31+
label: _("Export to Post_Script...");
32+
}
33+
}
34+
section {
35+
item {
36+
label: _("Page Set_up");
37+
icon: "document-page-setup";
38+
}
39+
item {
40+
label: _("_Print");
41+
icon: "document-print";
42+
}
43+
}
44+
section {
45+
item {
46+
label: _("_Close");
47+
icon: "document-close";
48+
}
49+
item {
50+
label: _("C_lose all");
51+
icon: "document-close";
52+
}
53+
}
54+
section {
55+
item {
56+
label: _("_Quit");
57+
icon: "gtk-quit";
58+
action: "app.quit";
59+
}
60+
}
61+
}
62+
63+
submenu {
64+
label: _("_Edit");
665

766
item {
867
label: _("_Preferences");
968
action: "app.preferences";
1069
}
70+
}
1171

12-
item {
13-
label: _("_About Shutter-Rust");
14-
action: "app.about";
15-
}
72+
submenu {
73+
label: _("_View");
74+
}
75+
76+
submenu {
77+
label: _("_Screenshot");
78+
}
79+
80+
submenu {
81+
label: _("_Go");
1682
}
1783

1884
submenu {

0 commit comments

Comments
 (0)