1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

calls-call-record-row: Adapt to GtkPopover changes

https://docs.gtk.org/gtk4/migrating-3to4.html#adapt-to-gtkpopover-changes

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
Anton Lazarev 2023-12-15 22:38:11 -08:00
parent e5c73011e2
commit 2618620124

View file

@ -374,10 +374,8 @@ context_menu (GtkWidget *widget,
self = CALLS_CALL_RECORD_ROW (widget);
if (!self->popover) {
self->popover = GTK_POPOVER (gtk_popover_new (widget));
gtk_popover_bind_model (self->popover,
G_MENU_MODEL (self->context_menu),
"row-history");
self->popover = GTK_POPOVER (gtk_popover_menu_new_from_model (G_MENU_MODEL (self->context_menu)));
gtk_widget_set_parent (GTK_WIDGET (self->popover), widget);
}
setup_popover_actions (self);