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:
parent
e5c73011e2
commit
2618620124
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue