]> Pileus Git - ~andy/gtk/blob - gdk/wayland/gdkselection-wayland.c
Add Wayland backend
[~andy/gtk] / gdk / wayland / gdkselection-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 Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #include "config.h"
21
22 #include "gdkselection.h"
23 #include "gdkproperty.h"
24 #include "gdkprivate.h"
25
26 #include <string.h>
27
28 GdkWindow *
29 _gdk_wayland_display_get_selection_owner (GdkDisplay *display,
30                                           GdkAtom     selection)
31 {
32   return NULL;
33 }
34
35 gboolean
36 _gdk_wayland_display_set_selection_owner (GdkDisplay *display,
37                                           GdkWindow  *owner,
38                                           GdkAtom     selection,
39                                           guint32     time,
40                                           gboolean    send_event)
41 {
42   return FALSE;
43 }
44
45 void
46 _gdk_wayland_display_send_selection_notify (GdkDisplay       *display,
47                                             GdkNativeWindow  requestor,
48                                             GdkAtom          selection,
49                                             GdkAtom          target,
50                                             GdkAtom          property,
51                                             guint32          time)
52 {
53 }
54
55 gint
56 _gdk_wayland_display_get_selection_property (GdkDisplay  *display,
57                                              GdkWindow   *requestor,
58                                              guchar     **data,
59                                              GdkAtom     *ret_type,
60                                              gint        *ret_format)
61 {
62   return 0;
63 }
64
65 void
66 _gdk_wayland_display_convert_selection (GdkDisplay *display,
67                                         GdkWindow  *requestor,
68                                         GdkAtom     selection,
69                                         GdkAtom     target,
70                                         guint32     time)
71 {
72 }
73
74 gint
75 _gdk_wayland_display_text_property_to_utf8_list (GdkDisplay    *display,
76                                                  GdkAtom        encoding,
77                                                  gint           format,
78                                                  const guchar  *text,
79                                                  gint           length,
80                                                  gchar       ***list)
81 {
82   return 0;
83 }
84
85 gchar *
86 _gdk_wayland_display_utf8_to_string_target (GdkDisplay  *display,
87                                             const gchar *str)
88 {
89   return NULL;
90 }