tests/wayland/client-utils: Add GObject parent instance field
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3475>
This commit is contained in:
parent
eab06bcf24
commit
2d18b976c1
@ -58,8 +58,8 @@ main (int argc,
|
|||||||
char **argv)
|
char **argv)
|
||||||
{
|
{
|
||||||
struct wl_registry *registry;
|
struct wl_registry *registry;
|
||||||
g_autoptr (WaylandSurface) surface;
|
|
||||||
g_autoptr (WaylandDisplay) display = NULL;
|
g_autoptr (WaylandDisplay) display = NULL;
|
||||||
|
g_autoptr (WaylandSurface) surface = NULL;
|
||||||
struct zwp_idle_inhibitor_v1 *inhibitor;
|
struct zwp_idle_inhibitor_v1 *inhibitor;
|
||||||
|
|
||||||
display = wayland_display_new (WAYLAND_DISPLAY_CAPABILITY_TEST_DRIVER);
|
display = wayland_display_new (WAYLAND_DISPLAY_CAPABILITY_TEST_DRIVER);
|
||||||
|
@ -62,6 +62,8 @@ G_DECLARE_FINAL_TYPE (WaylandDisplay, wayland_display,
|
|||||||
|
|
||||||
typedef struct _WaylandSurface
|
typedef struct _WaylandSurface
|
||||||
{
|
{
|
||||||
|
GObject parent;
|
||||||
|
|
||||||
WaylandDisplay *display;
|
WaylandDisplay *display;
|
||||||
|
|
||||||
struct wl_surface *wl_surface;
|
struct wl_surface *wl_surface;
|
||||||
|
@ -128,11 +128,11 @@ int
|
|||||||
main (int argc,
|
main (int argc,
|
||||||
char **argv)
|
char **argv)
|
||||||
{
|
{
|
||||||
|
g_autoptr (WaylandDisplay) display = NULL;
|
||||||
g_autoptr (WaylandSurface) window1 = NULL;
|
g_autoptr (WaylandSurface) window1 = NULL;
|
||||||
g_autoptr (WaylandSurface) window2 = NULL;
|
g_autoptr (WaylandSurface) window2 = NULL;
|
||||||
g_autoptr (WaylandSurface) window3 = NULL;
|
g_autoptr (WaylandSurface) window3 = NULL;
|
||||||
g_autoptr (WaylandSurface) window4 = NULL;
|
g_autoptr (WaylandSurface) window4 = NULL;
|
||||||
g_autoptr (WaylandDisplay) display = NULL;
|
|
||||||
g_autofree char *handle1 = NULL;
|
g_autofree char *handle1 = NULL;
|
||||||
g_autofree char *handle3 = NULL;
|
g_autofree char *handle3 = NULL;
|
||||||
struct wl_registry *registry;
|
struct wl_registry *registry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user