2 * Copyright © 2010 Intel Corporation
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public License
6 * as published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
24 #include <gio/gdesktopappinfo.h>
26 #include "gdkwayland.h"
27 #include "gdkprivate-wayland.h"
28 #include "gdkapplaunchcontextprivate.h"
29 #include "gdkscreen.h"
30 #include "gdkinternals.h"
34 gdk_wayland_app_launch_context_get_startup_notify_id (GAppLaunchContext *context,
42 gdk_wayland_app_launch_context_launch_failed (GAppLaunchContext *context,
43 const char *startup_notify_id)
47 typedef struct _GdkWaylandAppLaunchContext GdkWaylandAppLaunchContext;
48 typedef struct _GdkWaylandAppLaunchContextClass GdkWaylandAppLaunchContextClass;
50 struct _GdkWaylandAppLaunchContext
52 GdkAppLaunchContext base;
57 struct _GdkWaylandAppLaunchContextClass
59 GdkAppLaunchContextClass base_class;
62 G_DEFINE_TYPE (GdkWaylandAppLaunchContext, gdk_wayland_app_launch_context, GDK_TYPE_APP_LAUNCH_CONTEXT)
65 gdk_wayland_app_launch_context_class_init (GdkWaylandAppLaunchContextClass *klass)
67 GAppLaunchContextClass *ctx_class = G_APP_LAUNCH_CONTEXT_CLASS (klass);
69 ctx_class->get_startup_notify_id = gdk_wayland_app_launch_context_get_startup_notify_id;
70 ctx_class->launch_failed = gdk_wayland_app_launch_context_launch_failed;
74 gdk_wayland_app_launch_context_init (GdkWaylandAppLaunchContext *ctx)
79 _gdk_wayland_display_get_app_launch_context (GdkDisplay *display)
81 GdkAppLaunchContext *ctx;
83 ctx = g_object_new (gdk_wayland_app_launch_context_get_type (),