]> Pileus Git - ~andy/gtk/blob - gdk/wayland/gdkapplaunchcontext-wayland.c
328e04d116f21032d91eef0e91030942f6120a6c
[~andy/gtk] / gdk / wayland / gdkapplaunchcontext-wayland.c
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
33 static char *
34 gdk_wayland_app_launch_context_get_startup_notify_id (GAppLaunchContext *context,
35                                                       GAppInfo          *info, 
36                                                       GList             *files)
37 {
38   return NULL;
39 }
40
41 static void
42 gdk_wayland_app_launch_context_launch_failed (GAppLaunchContext *context, 
43                                               const char        *startup_notify_id)
44 {
45 }
46
47 typedef struct _GdkWaylandAppLaunchContext GdkWaylandAppLaunchContext;
48 typedef struct _GdkWaylandAppLaunchContextClass GdkWaylandAppLaunchContextClass;
49
50 struct _GdkWaylandAppLaunchContext
51 {
52   GdkAppLaunchContext base;
53   gchar *name;
54   guint serial;
55 };
56
57 struct _GdkWaylandAppLaunchContextClass
58 {
59   GdkAppLaunchContextClass base_class;
60 };
61
62 G_DEFINE_TYPE (GdkWaylandAppLaunchContext, gdk_wayland_app_launch_context, GDK_TYPE_APP_LAUNCH_CONTEXT)
63
64 static void
65 gdk_wayland_app_launch_context_class_init (GdkWaylandAppLaunchContextClass *klass)
66 {
67   GAppLaunchContextClass *ctx_class = G_APP_LAUNCH_CONTEXT_CLASS (klass);
68
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;
71 }
72
73 static void
74 gdk_wayland_app_launch_context_init (GdkWaylandAppLaunchContext *ctx)
75 {
76 }
77
78 GdkAppLaunchContext *
79 _gdk_wayland_display_get_app_launch_context (GdkDisplay *display)
80 {
81   GdkAppLaunchContext *ctx;
82
83   ctx = g_object_new (gdk_wayland_app_launch_context_get_type (),
84                       "display", display,
85                       NULL);
86
87   return ctx;
88 }