From 4ed1bba0b8f6cb2bd6632fc5a2a205e28df046b6 Mon Sep 17 00:00:00 2001 From: Anton Lazarev Date: Wed, 13 Dec 2023 12:25:46 -0800 Subject: [PATCH] treewide: Subclass custom classes from GtkWidget Part-of: --- plugins/provider/sip/calls-sip-account-widget.c | 4 ++-- plugins/provider/sip/calls-sip-account-widget.h | 2 +- plugins/provider/sip/sip-account-widget.ui | 2 +- src/calls-contacts-box.c | 4 ++-- src/calls-contacts-box.h | 2 +- src/calls-history-box.c | 4 ++-- src/calls-history-box.h | 2 +- src/calls-in-app-notification.c | 4 ++-- src/calls-in-app-notification.h | 2 +- src/calls-new-call-box.c | 4 ++-- src/calls-new-call-box.h | 2 +- src/ui/contacts-box.ui | 2 +- src/ui/history-box.ui | 2 +- src/ui/in-app-notification.ui | 2 +- src/ui/new-call-box.ui | 2 +- 15 files changed, 20 insertions(+), 20 deletions(-) diff --git a/plugins/provider/sip/calls-sip-account-widget.c b/plugins/provider/sip/calls-sip-account-widget.c index e16a05d..b71fcf2 100644 --- a/plugins/provider/sip/calls-sip-account-widget.c +++ b/plugins/provider/sip/calls-sip-account-widget.c @@ -51,7 +51,7 @@ static GParamSpec *props[PROP_LAST_PROP]; struct _CallsSipAccountWidget { - GtkBin parent; + GtkWidget parent; /* Header bar */ GtkWidget *header_add; @@ -87,7 +87,7 @@ struct _CallsSipAccountWidget { gboolean port_self_change; }; -G_DEFINE_TYPE (CallsSipAccountWidget, calls_sip_account_widget, GTK_TYPE_BIN) +G_DEFINE_TYPE (CallsSipAccountWidget, calls_sip_account_widget, GTK_TYPE_WIDGET) static gboolean diff --git a/plugins/provider/sip/calls-sip-account-widget.h b/plugins/provider/sip/calls-sip-account-widget.h index 19eff0a..f96945c 100644 --- a/plugins/provider/sip/calls-sip-account-widget.h +++ b/plugins/provider/sip/calls-sip-account-widget.h @@ -32,7 +32,7 @@ G_BEGIN_DECLS #define CALLS_TYPE_SIP_ACCOUNT_WIDGET (calls_sip_account_widget_get_type ()) -G_DECLARE_FINAL_TYPE (CallsSipAccountWidget, calls_sip_account_widget, CALLS, SIP_ACCOUNT_WIDGET, GtkBin) +G_DECLARE_FINAL_TYPE (CallsSipAccountWidget, calls_sip_account_widget, CALLS, SIP_ACCOUNT_WIDGET, GtkWidget) CallsSipAccountWidget *calls_sip_account_widget_new (CallsSipProvider *provider); void calls_sip_account_widget_set_origin (CallsSipAccountWidget *self, diff --git a/plugins/provider/sip/sip-account-widget.ui b/plugins/provider/sip/sip-account-widget.ui index 26aa7bc..ef457f1 100644 --- a/plugins/provider/sip/sip-account-widget.ui +++ b/plugins/provider/sip/sip-account-widget.ui @@ -2,7 +2,7 @@ -