treewide: Subclass custom classes from GtkWidget
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
@@ -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
|
||||
|
@@ -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,
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.24"/>
|
||||
<requires lib="libhandy" version="1.0"/>
|
||||
<template class="CallsSipAccountWidget" parent="GtkBin">
|
||||
<template class="CallsSipAccountWidget" parent="GtkWidget">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
|
Reference in New Issue
Block a user