mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-22 22:03:44 +03:00
src: convert VirtViewerWindow to G_DECLARE_FINAL_TYPE
This removes the use of a private data struct. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
7a71409028
commit
10b2850d70
File diff suppressed because it is too large
Load Diff
@ -36,31 +36,11 @@ G_BEGIN_DECLS
|
||||
|
||||
#define VIRT_VIEWER_TYPE_WINDOW virt_viewer_window_get_type()
|
||||
|
||||
#define VIRT_VIEWER_WINDOW(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST ((obj), VIRT_VIEWER_TYPE_WINDOW, VirtViewerWindow))
|
||||
|
||||
#define VIRT_VIEWER_WINDOW_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST ((klass), VIRT_VIEWER_TYPE_WINDOW, VirtViewerWindowClass))
|
||||
|
||||
#define VIRT_VIEWER_IS_WINDOW(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIRT_VIEWER_TYPE_WINDOW))
|
||||
|
||||
#define VIRT_VIEWER_IS_WINDOW_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE ((klass), VIRT_VIEWER_TYPE_WINDOW))
|
||||
|
||||
#define VIRT_VIEWER_WINDOW_GET_CLASS(obj) \
|
||||
(G_TYPE_INSTANCE_GET_CLASS ((obj), VIRT_VIEWER_TYPE_WINDOW, VirtViewerWindowClass))
|
||||
|
||||
typedef struct _VirtViewerWindowPrivate VirtViewerWindowPrivate;
|
||||
|
||||
typedef struct {
|
||||
GObject parent;
|
||||
VirtViewerWindowPrivate *priv;
|
||||
} VirtViewerWindow;
|
||||
|
||||
typedef struct {
|
||||
GObjectClass parent_class;
|
||||
} VirtViewerWindowClass;
|
||||
G_DECLARE_FINAL_TYPE(VirtViewerWindow,
|
||||
virt_viewer_window,
|
||||
VIRT_VIEWER,
|
||||
WINDOW,
|
||||
GObject)
|
||||
|
||||
GType virt_viewer_window_get_type (void);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user