Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mutter
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
verdre
mutter
Commits
cc444d49
Commit
cc444d49
authored
Jul 05, 2019
by
Jonas Ådahl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
window/wayland: Use G_DECLARE_FINAL_TYPE
GNOME/mutter!907
parent
4bf5b7d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
+6
-11
src/meta/window.h
src/meta/window.h
+2
-0
src/wayland/meta-window-wayland.h
src/wayland/meta-window-wayland.h
+4
-11
No files found.
src/meta/window.h
View file @
cc444d49
...
...
@@ -99,6 +99,8 @@ typedef enum
#define META_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_WINDOW))
#define META_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_WINDOW, MetaWindowClass))
G_DEFINE_AUTOPTR_CLEANUP_FUNC
(
MetaWindow
,
g_object_unref
)
typedef
struct
_MetaWindowClass
MetaWindowClass
;
META_EXPORT
...
...
src/wayland/meta-window-wayland.h
View file @
cc444d49
...
...
@@ -31,17 +31,10 @@
G_BEGIN_DECLS
#define META_TYPE_WINDOW_WAYLAND (meta_window_wayland_get_type())
#define META_WINDOW_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), META_TYPE_WINDOW_WAYLAND, MetaWindowWayland))
#define META_WINDOW_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), META_TYPE_WINDOW_WAYLAND, MetaWindowWaylandClass))
#define META_IS_WINDOW_WAYLAND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), META_TYPE_WINDOW_WAYLAND))
#define META_IS_WINDOW_WAYLAND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), META_TYPE_WINDOW_WAYLAND))
#define META_WINDOW_WAYLAND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), META_TYPE_WINDOW_WAYLAND, MetaWindowWaylandClass))
GType
meta_window_wayland_get_type
(
void
);
typedef
struct
_MetaWindowWayland
MetaWindowWayland
;
typedef
struct
_MetaWindowWaylandClass
MetaWindowWaylandClass
;
#define META_TYPE_WINDOW_WAYLAND (meta_window_wayland_get_type())
G_DECLARE_FINAL_TYPE
(
MetaWindowWayland
,
meta_window_wayland
,
META
,
WINDOW_WAYLAND
,
MetaWindow
)
MetaWindow
*
meta_window_wayland_new
(
MetaDisplay
*
display
,
MetaWaylandSurface
*
surface
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment