From 9fa0539ad6d72069900561931ce6183adeae7d74 Mon Sep 17 00:00:00 2001 From: Anton Lazarev Date: Sat, 26 Aug 2023 22:25:49 -0700 Subject: [PATCH] sip-account-widget: compose with GtkBin instead of subclassing GtkBox Part-of: --- .../provider/sip/calls-sip-account-widget.c | 4 +- .../provider/sip/calls-sip-account-widget.h | 2 +- plugins/provider/sip/sip-account-widget.ui | 445 +++++++++--------- 3 files changed, 228 insertions(+), 223 deletions(-) diff --git a/plugins/provider/sip/calls-sip-account-widget.c b/plugins/provider/sip/calls-sip-account-widget.c index 173f252..e16a05d 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 { - GtkBox parent; + GtkBin 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_BOX) +G_DEFINE_TYPE (CallsSipAccountWidget, calls_sip_account_widget, GTK_TYPE_BIN) static gboolean diff --git a/plugins/provider/sip/calls-sip-account-widget.h b/plugins/provider/sip/calls-sip-account-widget.h index 7a54763..19eff0a 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, GtkBox) +G_DECLARE_FINAL_TYPE (CallsSipAccountWidget, calls_sip_account_widget, CALLS, SIP_ACCOUNT_WIDGET, GtkBin) 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 83af8aa..26aa7bc 100644 --- a/plugins/provider/sip/sip-account-widget.ui +++ b/plugins/provider/sip/sip-account-widget.ui @@ -2,238 +2,243 @@ -