user-controls: Use GtkPopoverMenu API to set menu model

Pretty trivial replacement, since 'oars_popover' already is a
GtkPopoverMenu.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-08 16:11:05 -03:00
parent 6cb361efb9
commit 03ecb2dcb2
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ struct _MctUserControls
GtkSwitch *restrict_web_browsers_switch; GtkSwitch *restrict_web_browsers_switch;
AdwActionRow *restrict_web_browsers_row; AdwActionRow *restrict_web_browsers_row;
GtkMenuButton *oars_button; GtkMenuButton *oars_button;
GtkPopover *oars_popover; GtkPopoverMenu *oars_popover;
MctRestrictApplicationsDialog *restrict_applications_dialog; MctRestrictApplicationsDialog *restrict_applications_dialog;
GtkLabel *restrict_applications_description; GtkLabel *restrict_applications_description;
AdwActionRow *restrict_applications_row; AdwActionRow *restrict_applications_row;
@ -1037,7 +1037,7 @@ mct_user_controls_init (MctUserControls *self)
"permissions", "permissions",
G_ACTION_GROUP (self->action_group)); 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));
} }
/** /**