1/*
2 * Copyright © 2010 Intel Corporation
3 *
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.
8 *
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.
13 *
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/>.
16 */
17
18#include "config.h"
19
20#include <string.h>
21#include <unistd.h>
22
23#include <glib.h>
24#include <gio/gdesktopappinfo.h>
25
26#include "gdkwayland.h"
27#include "gdkprivate-wayland.h"
28#include "gdkapplaunchcontextprivate.h"
29#include "gdkscreen.h"
30#include "gdkinternals.h"
31#include "gdkintl.h"
32
33static char *
34gdk_wayland_app_launch_context_get_startup_notify_id (GAppLaunchContext *context,
35 GAppInfo *info,
36 GList *files)
37{
38 return NULL;
39}
40
41static void
42gdk_wayland_app_launch_context_launch_failed (GAppLaunchContext *context,
43 const char *startup_notify_id)
44{
45}
46
47typedef struct _GdkWaylandAppLaunchContext GdkWaylandAppLaunchContext;
48typedef struct _GdkWaylandAppLaunchContextClass GdkWaylandAppLaunchContextClass;
49
50struct _GdkWaylandAppLaunchContext
51{
52 GdkAppLaunchContext base;
53 gchar *name;
54 guint serial;
55};
56
57struct _GdkWaylandAppLaunchContextClass
58{
59 GdkAppLaunchContextClass base_class;
60};
61
62GType gdk_wayland_app_launch_context_get_type (void);
63
64G_DEFINE_TYPE (GdkWaylandAppLaunchContext, gdk_wayland_app_launch_context, GDK_TYPE_APP_LAUNCH_CONTEXT)
65
66static void
67gdk_wayland_app_launch_context_class_init (GdkWaylandAppLaunchContextClass *klass)
68{
69 GAppLaunchContextClass *ctx_class = G_APP_LAUNCH_CONTEXT_CLASS (klass);
70
71 ctx_class->get_startup_notify_id = gdk_wayland_app_launch_context_get_startup_notify_id;
72 ctx_class->launch_failed = gdk_wayland_app_launch_context_launch_failed;
73}
74
75static void
76gdk_wayland_app_launch_context_init (GdkWaylandAppLaunchContext *ctx)
77{
78}
79
80GdkAppLaunchContext *
81_gdk_wayland_display_get_app_launch_context (GdkDisplay *display)
82{
83 GdkAppLaunchContext *ctx;
84
85 ctx = g_object_new (gdk_wayland_app_launch_context_get_type (),
86 "display", display,
87 NULL);
88
89 return ctx;
90}
91