]> Pileus Git - ~andy/gtk/blob - gdk/wayland/gdkselection-wayland.c
6c904a17a4d1b7d87892ca7226369f95d6da8f18
[~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   fprintf(stderr, "set selection owner: atom %ld, owner %p\n",
43           selection, owner);
44
45   return TRUE;
46 }
47
48 void
49 _gdk_wayland_display_send_selection_notify (GdkDisplay *dispay,
50                                             GdkWindow        *requestor,
51                                             GdkAtom          selection,
52                                             GdkAtom          target,
53                                             GdkAtom          property,
54                                             guint32          time)
55 {
56 }
57
58 gint
59 _gdk_wayland_display_get_selection_property (GdkDisplay  *display,
60                                              GdkWindow   *requestor,
61                                              guchar     **data,
62                                              GdkAtom     *ret_type,
63                                              gint        *ret_format)
64 {
65   return 0;
66 }
67
68 void
69 _gdk_wayland_display_convert_selection (GdkDisplay *display,
70                                         GdkWindow  *requestor,
71                                         GdkAtom     selection,
72                                         GdkAtom     target,
73                                         guint32     time)
74 {
75 }
76
77 gint
78 _gdk_wayland_display_text_property_to_utf8_list (GdkDisplay    *display,
79                                                  GdkAtom        encoding,
80                                                  gint           format,
81                                                  const guchar  *text,
82                                                  gint           length,
83                                                  gchar       ***list)
84 {
85   return 0;
86 }
87
88 gchar *
89 _gdk_wayland_display_utf8_to_string_target (GdkDisplay  *display,
90                                             const gchar *str)
91 {
92   return NULL;
93 }