forked from ghostty-org/ghostty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gtk: switch menus to use blueprints instead of raw builder ui (ghostt…
- Loading branch information
Showing
7 changed files
with
218 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
using Gtk 4.0; | ||
|
||
menu menu { | ||
section { | ||
item { | ||
label: _("Copy"); | ||
action: "win.copy"; | ||
} | ||
|
||
item { | ||
label: _("Paste"); | ||
action: "win.paste"; | ||
} | ||
} | ||
|
||
section { | ||
item { | ||
label: _("Clear"); | ||
action: "win.clear"; | ||
} | ||
|
||
item { | ||
label: _("Reset"); | ||
action: "win.reset"; | ||
} | ||
} | ||
|
||
section { | ||
submenu { | ||
label: _("Split"); | ||
|
||
item { | ||
label: _("Change Title…"); | ||
action: "win.prompt-title"; | ||
} | ||
|
||
item { | ||
label: _("Split Up"); | ||
action: "win.split-up"; | ||
} | ||
|
||
item { | ||
label: _("Split Down"); | ||
action: "win.split-down"; | ||
} | ||
|
||
item { | ||
label: _("Split Left"); | ||
action: "win.split-left"; | ||
} | ||
|
||
item { | ||
label: _("Split Right"); | ||
action: "win.split-right"; | ||
} | ||
} | ||
|
||
submenu { | ||
label: _("Tab"); | ||
|
||
item { | ||
label: _("New Tab"); | ||
action: "win.new-tab"; | ||
} | ||
|
||
item { | ||
label: _("Close Tab"); | ||
action: "win.close-tab"; | ||
} | ||
} | ||
|
||
submenu { | ||
label: _("Window"); | ||
|
||
item { | ||
label: _("New Window"); | ||
action: "win.new-window"; | ||
} | ||
|
||
item { | ||
label: _("Close Window"); | ||
action: "win.close"; | ||
} | ||
} | ||
} | ||
|
||
section { | ||
submenu { | ||
label: _("Config"); | ||
|
||
item { | ||
label: _("Open Configuration"); | ||
action: "app.open-config"; | ||
} | ||
|
||
item { | ||
label: _("Reload Configuration"); | ||
action: "app.reload-config"; | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
using Gtk 4.0; | ||
|
||
menu menu { | ||
section { | ||
item { | ||
label: _("Copy"); | ||
action: "win.copy"; | ||
} | ||
|
||
item { | ||
label: _("Paste"); | ||
action: "win.paste"; | ||
} | ||
} | ||
|
||
section { | ||
item { | ||
label: _("New Window"); | ||
action: "win.new-window"; | ||
} | ||
|
||
item { | ||
label: _("Close Window"); | ||
action: "win.close"; | ||
} | ||
} | ||
|
||
section { | ||
item { | ||
label: _("New Tab"); | ||
action: "win.new-tab"; | ||
} | ||
|
||
item { | ||
label: _("Close Tab"); | ||
action: "win.close-tab"; | ||
} | ||
} | ||
|
||
section { | ||
submenu { | ||
label: _("Split"); | ||
|
||
item { | ||
label: _("Change Title…"); | ||
action: "win.prompt-title"; | ||
} | ||
|
||
item { | ||
label: _("Split Up"); | ||
action: "win.split-up"; | ||
} | ||
|
||
item { | ||
label: _("Split Down"); | ||
action: "win.split-down"; | ||
} | ||
|
||
item { | ||
label: _("Split Left"); | ||
action: "win.split-left"; | ||
} | ||
|
||
item { | ||
label: _("Split Right"); | ||
action: "win.split-right"; | ||
} | ||
} | ||
} | ||
|
||
section { | ||
item { | ||
label: _("Clear"); | ||
action: "win.clear"; | ||
} | ||
|
||
item { | ||
label: _("Reset"); | ||
action: "win.reset"; | ||
} | ||
} | ||
|
||
section { | ||
item { | ||
label: _("Terminal Inspector"); | ||
action: "win.toggle-inspector"; | ||
} | ||
|
||
item { | ||
label: _("Open Configuration"); | ||
action: "app.open-config"; | ||
} | ||
|
||
item { | ||
label: _("Reload Configuration"); | ||
action: "app.reload-config"; | ||
} | ||
} | ||
|
||
section { | ||
item { | ||
label: _("About Ghostty"); | ||
action: "win.about"; | ||
} | ||
|
||
item { | ||
label: _("Quit"); | ||
action: "app.quit"; | ||
} | ||
} | ||
} |
Oops, something went wrong.