mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
tests/wayland-test-clients: Add missing WAYLAND_TYPE_DISPLAY define
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3350>
This commit is contained in:
parent
2993462700
commit
cceccc0f68
@ -43,7 +43,9 @@ static guint signals[N_SIGNALS];
|
||||
static struct wl_callback *effects_complete_callback;
|
||||
static struct wl_callback *view_verification_callback;
|
||||
|
||||
G_DEFINE_TYPE (WaylandDisplay, wayland_display, G_TYPE_OBJECT)
|
||||
G_DEFINE_TYPE (WaylandDisplay,
|
||||
wayland_display,
|
||||
G_TYPE_OBJECT)
|
||||
|
||||
static int
|
||||
create_tmpfile_cloexec (char *tmpname)
|
||||
@ -232,7 +234,7 @@ wayland_display_new_full (WaylandDisplayCapabilities capabilities,
|
||||
|
||||
g_assert_nonnull (wayland_display);
|
||||
|
||||
display = g_object_new (wayland_display_get_type (), NULL);
|
||||
display = g_object_new (WAYLAND_TYPE_DISPLAY, NULL);
|
||||
|
||||
display->capabilities = capabilities;
|
||||
display->properties = g_hash_table_new_full (g_str_hash, g_str_equal,
|
||||
|
@ -39,6 +39,11 @@ typedef struct _WaylandDisplay
|
||||
GHashTable *properties;
|
||||
} WaylandDisplay;
|
||||
|
||||
#define WAYLAND_TYPE_DISPLAY (wayland_display_get_type ())
|
||||
G_DECLARE_FINAL_TYPE (WaylandDisplay, wayland_display,
|
||||
WAYLAND, DISPLAY,
|
||||
GObject)
|
||||
|
||||
typedef struct _WaylandSurface
|
||||
{
|
||||
WaylandDisplay *display;
|
||||
@ -55,10 +60,6 @@ typedef struct _WaylandSurface
|
||||
uint32_t color;
|
||||
} WaylandSurface;
|
||||
|
||||
G_DECLARE_FINAL_TYPE (WaylandDisplay, wayland_display,
|
||||
WAYLAND, DISPLAY,
|
||||
GObject)
|
||||
|
||||
int create_anonymous_file (off_t size);
|
||||
|
||||
WaylandDisplay * wayland_display_new (WaylandDisplayCapabilities capabilities);
|
||||
|
Loading…
Reference in New Issue
Block a user