]> Pileus Git - ~andy/gtk/blob - gdk/wayland/gdkapplaunchcontext-wayland.c
1ff2549c796c73a4300b7b3d3b40582dfc364812
[~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, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17  * 02111-1307, USA.
18  */
19
20 #include "config.h"
21
22 #include <string.h>
23 #include <unistd.h>
24
25 #include <glib.h>
26 #include <gio/gdesktopappinfo.h>
27
28 #include "gdkwayland.h"
29 #include "gdkprivate-wayland.h"
30 #include "gdkapplaunchcontextprivate.h"
31 #include "gdkscreen.h"
32 #include "gdkinternals.h"
33 #include "gdkintl.h"
34
35 static char *
36 gdk_wayland_app_launch_context_get_startup_notify_id (GAppLaunchContext *context,
37                                                       GAppInfo          *info, 
38                                                       GList             *files)
39 {
40   return NULL;
41 }
42
43 static void
44 gdk_wayland_app_launch_context_launch_failed (GAppLaunchContext *context, 
45                                               const char        *startup_notify_id)
46 {
47 }
48
49 typedef struct _GdkWaylandAppLaunchContext GdkWaylandAppLaunchContext;
50 typedef struct _GdkWaylandAppLaunchContextClass GdkWaylandAppLaunchContextClass;
51
52 struct _GdkWaylandAppLaunchContext
53 {
54   GdkAppLaunchContext base;
55   gchar *name;
56   guint serial;
57 };
58
59 struct _GdkWaylandAppLaunchContextClass
60 {
61   GdkAppLaunchContextClass base_class;
62 };
63
64 G_DEFINE_TYPE (GdkWaylandAppLaunchContext, gdk_wayland_app_launch_context, GDK_TYPE_APP_LAUNCH_CONTEXT)
65
66 static void
67 gdk_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
75 static void
76 gdk_wayland_app_launch_context_init (GdkWaylandAppLaunchContext *ctx)
77 {
78 }
79
80 GdkAppLaunchContext *
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 }