mirror of
https://github.com/brl/mutter.git
synced 2025-04-15 14:49:39 +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 *effects_complete_callback;
|
||||||
static struct wl_callback *view_verification_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
|
static int
|
||||||
create_tmpfile_cloexec (char *tmpname)
|
create_tmpfile_cloexec (char *tmpname)
|
||||||
@ -232,7 +234,7 @@ wayland_display_new_full (WaylandDisplayCapabilities capabilities,
|
|||||||
|
|
||||||
g_assert_nonnull (wayland_display);
|
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->capabilities = capabilities;
|
||||||
display->properties = g_hash_table_new_full (g_str_hash, g_str_equal,
|
display->properties = g_hash_table_new_full (g_str_hash, g_str_equal,
|
||||||
|
@ -39,6 +39,11 @@ typedef struct _WaylandDisplay
|
|||||||
GHashTable *properties;
|
GHashTable *properties;
|
||||||
} WaylandDisplay;
|
} WaylandDisplay;
|
||||||
|
|
||||||
|
#define WAYLAND_TYPE_DISPLAY (wayland_display_get_type ())
|
||||||
|
G_DECLARE_FINAL_TYPE (WaylandDisplay, wayland_display,
|
||||||
|
WAYLAND, DISPLAY,
|
||||||
|
GObject)
|
||||||
|
|
||||||
typedef struct _WaylandSurface
|
typedef struct _WaylandSurface
|
||||||
{
|
{
|
||||||
WaylandDisplay *display;
|
WaylandDisplay *display;
|
||||||
@ -55,10 +60,6 @@ typedef struct _WaylandSurface
|
|||||||
uint32_t color;
|
uint32_t color;
|
||||||
} WaylandSurface;
|
} WaylandSurface;
|
||||||
|
|
||||||
G_DECLARE_FINAL_TYPE (WaylandDisplay, wayland_display,
|
|
||||||
WAYLAND, DISPLAY,
|
|
||||||
GObject)
|
|
||||||
|
|
||||||
int create_anonymous_file (off_t size);
|
int create_anonymous_file (off_t size);
|
||||||
|
|
||||||
WaylandDisplay * wayland_display_new (WaylandDisplayCapabilities capabilities);
|
WaylandDisplay * wayland_display_new (WaylandDisplayCapabilities capabilities);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user