apprt/gtk: some stylistic changes

This commit is contained in:
Mitchell Hashimoto
2024-07-22 10:29:59 -07:00
parent cc3b040571
commit 53e942abae

View File

@ -1177,10 +1177,7 @@ fn showContextMenu(self: *Surface, x: f32, y: f32) void {
return;
};
var point: c.graphene_point_t = .{
.x = x,
.y = y,
};
var point: c.graphene_point_t = .{ .x = x, .y = y };
if (c.gtk_widget_compute_point(
self.primaryWidget(),
@ptrCast(window.window),
@ -1199,9 +1196,7 @@ fn showContextMenu(self: *Surface, x: f32, y: f32) void {
};
c.gtk_popover_set_pointing_to(@ptrCast(@alignCast(window.context_menu)), &rect);
self.app.refreshContextMenu(self.core_surface.hasSelection());
c.gtk_popover_popup(@ptrCast(@alignCast(window.context_menu)));
}