diff --git a/plugins/provider/sip/calls-sip-account-widget.c b/plugins/provider/sip/calls-sip-account-widget.c index 13662b2..8011e19 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 { - GtkWidget parent; + AdwBin parent; GtkWidget *child; @@ -89,7 +89,7 @@ struct _CallsSipAccountWidget { gboolean port_self_change; }; -G_DEFINE_TYPE (CallsSipAccountWidget, calls_sip_account_widget, GTK_TYPE_WIDGET) +G_DEFINE_TYPE (CallsSipAccountWidget, calls_sip_account_widget, ADW_TYPE_BIN) static gboolean @@ -650,8 +650,6 @@ calls_sip_account_widget_class_init (CallsSipAccountWidgetClass *klass) gtk_widget_class_bind_template_callback (widget_class, on_password_visibility_changed); gtk_widget_class_bind_template_callback (widget_class, on_port_entry_insert_text); gtk_widget_class_bind_template_callback (widget_class, on_port_entry_after_insert_text); - - gtk_widget_class_set_layout_manager_type(widget_class, GTK_TYPE_BOX_LAYOUT); } diff --git a/plugins/provider/sip/calls-sip-account-widget.h b/plugins/provider/sip/calls-sip-account-widget.h index 799995d..6259204 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, GtkWidget) +G_DECLARE_FINAL_TYPE (CallsSipAccountWidget, calls_sip_account_widget, CALLS, SIP_ACCOUNT_WIDGET, AdwBin) 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 b3b62dc..1af5312 100644 --- a/plugins/provider/sip/sip-account-widget.ui +++ b/plugins/provider/sip/sip-account-widget.ui @@ -2,7 +2,7 @@ -