user-controls: Inherit from AdwBin

GtkBin is no more, but libadwaita has a nice 1:1 replacement which
is AdwBin.
This commit is contained in:
Georges Basile Stavracas Neto 2022-07-08 15:17:05 -03:00
parent e322d8cd98
commit 2d9b408a32
3 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ static const guint32 oars_disabled_age = (guint32) -1;
*/
struct _MctUserControls
{
GtkGrid parent_instance;
AdwBin parent_instance;
GtkLabel *description_label;
GMenu *age_menu;
@ -138,7 +138,7 @@ static void on_permission_allowed_cb (GObject *obj,
GParamSpec *pspec,
gpointer user_data);
G_DEFINE_TYPE (MctUserControls, mct_user_controls, GTK_TYPE_BIN)
G_DEFINE_TYPE (MctUserControls, mct_user_controls, ADW_TYPE_BIN)
typedef enum
{

View File

@ -34,7 +34,7 @@
G_BEGIN_DECLS
#define MCT_TYPE_USER_CONTROLS (mct_user_controls_get_type())
G_DECLARE_FINAL_TYPE (MctUserControls, mct_user_controls, MCT, USER_CONTROLS, GtkBin)
G_DECLARE_FINAL_TYPE (MctUserControls, mct_user_controls, MCT, USER_CONTROLS, AdwBin)
ActUser *mct_user_controls_get_user (MctUserControls *self);
void mct_user_controls_set_user (MctUserControls *self,

View File

@ -2,7 +2,7 @@
<!-- Copyright © 2018, 2019, 2020 Endless, Inc. -->
<interface domain="malcontent">
<requires lib="gtk+" version="3.12"/>
<template class="MctUserControls" parent="GtkBin">
<template class="MctUserControls" parent="AdwBin">
<child>
<object class="AdwPreferencesPage">
<child>