From 03ecb2dcb290f2ca08b7a8a7bcbdc7aa05e69003 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 8 Jul 2022 16:11:05 -0300 Subject: [PATCH] user-controls: Use GtkPopoverMenu API to set menu model Pretty trivial replacement, since 'oars_popover' already is a GtkPopoverMenu. --- libmalcontent-ui/user-controls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmalcontent-ui/user-controls.c b/libmalcontent-ui/user-controls.c index b395d56..caea88d 100644 --- a/libmalcontent-ui/user-controls.c +++ b/libmalcontent-ui/user-controls.c @@ -82,7 +82,7 @@ struct _MctUserControls GtkSwitch *restrict_web_browsers_switch; AdwActionRow *restrict_web_browsers_row; GtkMenuButton *oars_button; - GtkPopover *oars_popover; + GtkPopoverMenu *oars_popover; MctRestrictApplicationsDialog *restrict_applications_dialog; GtkLabel *restrict_applications_description; AdwActionRow *restrict_applications_row; @@ -1037,7 +1037,7 @@ mct_user_controls_init (MctUserControls *self) "permissions", G_ACTION_GROUP (self->action_group)); - gtk_popover_bind_model (self->oars_popover, G_MENU_MODEL (self->age_menu), NULL); + gtk_popover_menu_set_menu_model (self->oars_popover, G_MENU_MODEL (self->age_menu)); } /**