Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SUMMARIES/gtk_mod.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# src/gtk/mod.rs — 10,888 lines
# src/gtk/mod.rs — 10,256 lines

GTK4/Relm4 application shell. Defines the `App` struct, `Msg` enum, and `SimpleComponent` impl (init/view/update). Contains the main event loop, window setup, input handling, and all GTK widget wiring.

Expand Down
4 changes: 3 additions & 1 deletion src/gtk/click.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@ pub(super) fn handle_mouse_click(
(None, ea)
}
ClickTarget::ActionMenuButton(group_id) => {
engine.open_editor_action_menu(group_id, 0, 0);
let col = (x / char_width.max(1.0)) as u16;
let row = (y / line_height.max(1.0)) as u16;
engine.open_editor_action_menu(group_id, col, row);
(None, None)
}
_ => (None, None),
Expand Down
Loading