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:
parent
e322d8cd98
commit
2d9b408a32
|
@ -73,7 +73,7 @@ static const guint32 oars_disabled_age = (guint32) -1;
|
||||||
*/
|
*/
|
||||||
struct _MctUserControls
|
struct _MctUserControls
|
||||||
{
|
{
|
||||||
GtkGrid parent_instance;
|
AdwBin parent_instance;
|
||||||
|
|
||||||
GtkLabel *description_label;
|
GtkLabel *description_label;
|
||||||
GMenu *age_menu;
|
GMenu *age_menu;
|
||||||
|
@ -138,7 +138,7 @@ static void on_permission_allowed_cb (GObject *obj,
|
||||||
GParamSpec *pspec,
|
GParamSpec *pspec,
|
||||||
gpointer user_data);
|
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
|
typedef enum
|
||||||
{
|
{
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define MCT_TYPE_USER_CONTROLS (mct_user_controls_get_type())
|
#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);
|
ActUser *mct_user_controls_get_user (MctUserControls *self);
|
||||||
void mct_user_controls_set_user (MctUserControls *self,
|
void mct_user_controls_set_user (MctUserControls *self,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!-- Copyright © 2018, 2019, 2020 Endless, Inc. -->
|
<!-- Copyright © 2018, 2019, 2020 Endless, Inc. -->
|
||||||
<interface domain="malcontent">
|
<interface domain="malcontent">
|
||||||
<requires lib="gtk+" version="3.12"/>
|
<requires lib="gtk+" version="3.12"/>
|
||||||
<template class="MctUserControls" parent="GtkBin">
|
<template class="MctUserControls" parent="AdwBin">
|
||||||
<child>
|
<child>
|
||||||
<object class="AdwPreferencesPage">
|
<object class="AdwPreferencesPage">
|
||||||
<child>
|
<child>
|
||||||
|
|
Loading…
Reference in New Issue