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:
@@ -374,10 +374,8 @@ context_menu (GtkWidget *widget,
|
|||||||
self = CALLS_CALL_RECORD_ROW (widget);
|
self = CALLS_CALL_RECORD_ROW (widget);
|
||||||
|
|
||||||
if (!self->popover) {
|
if (!self->popover) {
|
||||||
self->popover = GTK_POPOVER (gtk_popover_new (widget));
|
self->popover = GTK_POPOVER (gtk_popover_menu_new_from_model (G_MENU_MODEL (self->context_menu)));
|
||||||
gtk_popover_bind_model (self->popover,
|
gtk_widget_set_parent (GTK_WIDGET (self->popover), widget);
|
||||||
G_MENU_MODEL (self->context_menu),
|
|
||||||
"row-history");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_popover_actions (self);
|
setup_popover_actions (self);
|
||||||
|
Reference in New Issue
Block a user