net-device-mobile: Turn into a final class
Exact same case of NetVpn and NetDeviceWifi.
This commit is contained in:
parent
d4a08c48f1
commit
724c77a1a4
2 changed files with 9 additions and 24 deletions
|
@ -35,7 +35,7 @@
|
|||
|
||||
static void nm_device_mobile_refresh_ui (NetDeviceMobile *device_mobile);
|
||||
|
||||
struct _NetDeviceMobilePrivate
|
||||
typedef struct
|
||||
{
|
||||
GtkBuilder *builder;
|
||||
gboolean updating_device;
|
||||
|
@ -49,6 +49,12 @@ struct _NetDeviceMobilePrivate
|
|||
guint operator_name_updated;
|
||||
|
||||
NMAMobileProvidersDatabase *mpd;
|
||||
} NetDeviceMobilePrivate;
|
||||
|
||||
struct _NetDeviceMobile
|
||||
{
|
||||
NetDevice parent;
|
||||
NetDeviceMobilePrivate *priv;
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
|
@ -29,29 +29,8 @@
|
|||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define NET_TYPE_DEVICE_MOBILE (net_device_mobile_get_type ())
|
||||
#define NET_DEVICE_MOBILE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), NET_TYPE_DEVICE_MOBILE, NetDeviceMobile))
|
||||
#define NET_DEVICE_MOBILE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), NET_TYPE_DEVICE_MOBILE, NetDeviceMobileClass))
|
||||
#define NET_IS_DEVICE_MOBILE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), NET_TYPE_DEVICE_MOBILE))
|
||||
#define NET_IS_DEVICE_MOBILE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), NET_TYPE_DEVICE_MOBILE))
|
||||
#define NET_DEVICE_MOBILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), NET_TYPE_DEVICE_MOBILE, NetDeviceMobileClass))
|
||||
|
||||
typedef struct _NetDeviceMobilePrivate NetDeviceMobilePrivate;
|
||||
typedef struct _NetDeviceMobile NetDeviceMobile;
|
||||
typedef struct _NetDeviceMobileClass NetDeviceMobileClass;
|
||||
|
||||
struct _NetDeviceMobile
|
||||
{
|
||||
NetDevice parent;
|
||||
NetDeviceMobilePrivate *priv;
|
||||
};
|
||||
|
||||
struct _NetDeviceMobileClass
|
||||
{
|
||||
NetDeviceClass parent_class;
|
||||
};
|
||||
|
||||
GType net_device_mobile_get_type (void);
|
||||
#define NET_TYPE_DEVICE_MOBILE (net_device_mobile_get_type ())
|
||||
G_DECLARE_FINAL_TYPE (NetDeviceMobile, net_device_mobile, NET, DEVICE_MOBILE, NetDevice)
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue