mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-10-31 18:55:22 +00:00
treewide: Subclass custom classes from GtkWidget
Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/714>
This commit is contained in:
parent
bc90d6e64f
commit
4ed1bba0b8
15 changed files with 20 additions and 20 deletions
|
@ -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">
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <handy.h>
|
||||
|
||||
struct _CallsContactsBox {
|
||||
GtkBin parent_instance;
|
||||
GtkWidget parent_instance;
|
||||
|
||||
GtkWidget *search_entry;
|
||||
GtkWidget *contacts_frame;
|
||||
|
@ -43,7 +43,7 @@ struct _CallsContactsBox {
|
|||
FolksSimpleQuery *search_query;
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE (CallsContactsBox, calls_contacts_box, GTK_TYPE_BIN);
|
||||
G_DEFINE_TYPE (CallsContactsBox, calls_contacts_box, GTK_TYPE_WIDGET);
|
||||
|
||||
static void
|
||||
search_changed_cb (CallsContactsBox *self,
|
||||
|
|
|
@ -31,7 +31,7 @@ G_BEGIN_DECLS
|
|||
|
||||
#define CALLS_TYPE_CONTACTS_BOX (calls_contacts_box_get_type ())
|
||||
|
||||
G_DECLARE_FINAL_TYPE (CallsContactsBox, calls_contacts_box, CALLS, CONTACTS_BOX, GtkBin);
|
||||
G_DECLARE_FINAL_TYPE (CallsContactsBox, calls_contacts_box, CALLS, CONTACTS_BOX, GtkWidget);
|
||||
|
||||
GtkWidget *calls_contacts_box_new (void);
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
#define CALLS_HISTORY_INCREASE_N_PAGES_THRESHOLD 2
|
||||
|
||||
struct _CallsHistoryBox {
|
||||
GtkBin parent_instance;
|
||||
GtkWidget parent_instance;
|
||||
|
||||
GtkStack *stack;
|
||||
GtkListBox *history;
|
||||
|
@ -54,7 +54,7 @@ struct _CallsHistoryBox {
|
|||
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE (CallsHistoryBox, calls_history_box, GTK_TYPE_BIN);
|
||||
G_DEFINE_TYPE (CallsHistoryBox, calls_history_box, GTK_TYPE_WIDGET);
|
||||
|
||||
|
||||
enum {
|
||||
|
|
|
@ -33,7 +33,7 @@ G_BEGIN_DECLS
|
|||
|
||||
#define CALLS_TYPE_HISTORY_BOX (calls_history_box_get_type ())
|
||||
|
||||
G_DECLARE_FINAL_TYPE (CallsHistoryBox, calls_history_box, CALLS, HISTORY_BOX, GtkBin);
|
||||
G_DECLARE_FINAL_TYPE (CallsHistoryBox, calls_history_box, CALLS, HISTORY_BOX, GtkWidget);
|
||||
|
||||
CallsHistoryBox *calls_history_box_new (GListModel *model);
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#define DEFAULT_TIMEOUT_SECONDS 3
|
||||
|
||||
struct _CallsInAppNotification {
|
||||
GtkBin parent_instance;
|
||||
GtkWidget parent_instance;
|
||||
|
||||
GtkRevealer *revealer;
|
||||
GtkLabel *label;
|
||||
|
@ -36,7 +36,7 @@ struct _CallsInAppNotification {
|
|||
guint timeout_id;
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE (CallsInAppNotification, calls_in_app_notification, GTK_TYPE_BIN)
|
||||
G_DEFINE_TYPE (CallsInAppNotification, calls_in_app_notification, GTK_TYPE_WIDGET)
|
||||
|
||||
|
||||
enum {
|
||||
|
|
|
@ -31,7 +31,7 @@ G_BEGIN_DECLS
|
|||
|
||||
#define CALLS_TYPE_IN_APP_NOTIFICATION (calls_in_app_notification_get_type ())
|
||||
|
||||
G_DECLARE_FINAL_TYPE (CallsInAppNotification, calls_in_app_notification, CALLS, IN_APP_NOTIFICATION, GtkBin)
|
||||
G_DECLARE_FINAL_TYPE (CallsInAppNotification, calls_in_app_notification, CALLS, IN_APP_NOTIFICATION, GtkWidget)
|
||||
|
||||
CallsInAppNotification * calls_in_app_notification_new (void);
|
||||
void calls_in_app_notification_show (CallsInAppNotification *self, const gchar *message);
|
||||
|
|
|
@ -44,7 +44,7 @@ enum {
|
|||
static GParamSpec *props[PROP_LAST_PROP];
|
||||
|
||||
struct _CallsNewCallBox {
|
||||
GtkBin parent_instance;
|
||||
GtkWidget parent_instance;
|
||||
|
||||
GtkListBox *origin_list_box;
|
||||
HdyComboRow *origin_list;
|
||||
|
@ -58,7 +58,7 @@ struct _CallsNewCallBox {
|
|||
gboolean numeric_input_only;
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE (CallsNewCallBox, calls_new_call_box, GTK_TYPE_BIN);
|
||||
G_DEFINE_TYPE (CallsNewCallBox, calls_new_call_box, GTK_TYPE_WIDGET);
|
||||
|
||||
|
||||
static CallsOrigin *
|
||||
|
|
|
@ -30,7 +30,7 @@ G_BEGIN_DECLS
|
|||
|
||||
#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, GtkBin)
|
||||
G_DECLARE_FINAL_TYPE (CallsNewCallBox, calls_new_call_box, CALLS, NEW_CALL_BOX, GtkWidget)
|
||||
|
||||
CallsNewCallBox *calls_new_call_box_new (void);
|
||||
void calls_new_call_box_dial (CallsNewCallBox *self,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<interface>
|
||||
<requires lib="gtk+" version="3.20"/>
|
||||
<requires lib="libhandy" version="0.0"/>
|
||||
<template class="CallsContactsBox" parent="GtkBin">
|
||||
<template class="CallsContactsBox" parent="GtkWidget">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!-- Generated with glade 3.22.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.22"/>
|
||||
<template class="CallsHistoryBox" parent="GtkBin">
|
||||
<template class="CallsHistoryBox" parent="GtkWidget">
|
||||
<child>
|
||||
<object class="GtkStack" id="stack">
|
||||
<property name="visible">True</property>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.20"/>
|
||||
<template class="CallsInAppNotification" parent="GtkBin">
|
||||
<template class="CallsInAppNotification" parent="GtkWidget">
|
||||
<property name="visible">False</property>
|
||||
<child>
|
||||
<object class="GtkRevealer" id="revealer">
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<interface>
|
||||
<requires lib="gtk+" version="3.22"/>
|
||||
<requires lib="libhandy" version="1.0"/>
|
||||
<template class="CallsNewCallBox" parent="GtkBin">
|
||||
<template class="CallsNewCallBox" parent="GtkWidget">
|
||||
<property name="visible">True</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
|
|
Loading…
Reference in a new issue