calls-new-call-box: compose with GtkBin instead of subclassing GtkBox
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
@@ -44,7 +44,7 @@ enum {
|
|||||||
static GParamSpec *props[PROP_LAST_PROP];
|
static GParamSpec *props[PROP_LAST_PROP];
|
||||||
|
|
||||||
struct _CallsNewCallBox {
|
struct _CallsNewCallBox {
|
||||||
GtkBox parent_instance;
|
GtkBin parent_instance;
|
||||||
|
|
||||||
GtkListBox *origin_list_box;
|
GtkListBox *origin_list_box;
|
||||||
HdyComboRow *origin_list;
|
HdyComboRow *origin_list;
|
||||||
@@ -58,7 +58,7 @@ struct _CallsNewCallBox {
|
|||||||
gboolean numeric_input_only;
|
gboolean numeric_input_only;
|
||||||
};
|
};
|
||||||
|
|
||||||
G_DEFINE_TYPE (CallsNewCallBox, calls_new_call_box, GTK_TYPE_BOX);
|
G_DEFINE_TYPE (CallsNewCallBox, calls_new_call_box, GTK_TYPE_BIN);
|
||||||
|
|
||||||
|
|
||||||
static CallsOrigin *
|
static CallsOrigin *
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ G_BEGIN_DECLS
|
|||||||
|
|
||||||
#define CALLS_TYPE_NEW_CALL_BOX (calls_new_call_box_get_type ())
|
#define CALLS_TYPE_NEW_CALL_BOX (calls_new_call_box_get_type ())
|
||||||
|
|
||||||
G_DECLARE_FINAL_TYPE (CallsNewCallBox, calls_new_call_box, CALLS, NEW_CALL_BOX, GtkBox)
|
G_DECLARE_FINAL_TYPE (CallsNewCallBox, calls_new_call_box, CALLS, NEW_CALL_BOX, GtkBin)
|
||||||
|
|
||||||
CallsNewCallBox *calls_new_call_box_new (void);
|
CallsNewCallBox *calls_new_call_box_new (void);
|
||||||
void calls_new_call_box_dial (CallsNewCallBox *self,
|
void calls_new_call_box_dial (CallsNewCallBox *self,
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
<interface>
|
<interface>
|
||||||
<requires lib="gtk+" version="3.22"/>
|
<requires lib="gtk+" version="3.22"/>
|
||||||
<requires lib="libhandy" version="1.0"/>
|
<requires lib="libhandy" version="1.0"/>
|
||||||
<template class="CallsNewCallBox" parent="GtkBox">
|
<template class="CallsNewCallBox" parent="GtkBin">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
<property name="margin_left">24</property>
|
<property name="margin_left">24</property>
|
||||||
<property name="margin_right">24</property>
|
<property name="margin_right">24</property>
|
||||||
<property name="margin_top">6</property>
|
<property name="margin_top">6</property>
|
||||||
@@ -91,5 +94,7 @@
|
|||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</template>
|
</template>
|
||||||
</interface>
|
</interface>
|
||||||
|
|||||||
Reference in New Issue
Block a user