summaryrefslogtreecommitdiff
path: root/gdk/gdkselection.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-14 03:56:35 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-15 19:07:16 +0100
commitfb94f79094745a0e3fc64d5d56cea1637a8fdb73 (patch)
tree14c4dd210b12b86d8a482556da113fd073081c3c /gdk/gdkselection.c
parent13ca03efb165dd5e3ca82984bcd845deb1924cab (diff)
downloadgtk+-fb94f79094745a0e3fc64d5d56cea1637a8fdb73.tar.gz
selection: Remove #ifdef WAYLAND
Instead, turn the functions into backend API: gdk_broadway_display_add_selection_targets() gdk_broadway_display_clear_selection_targets() Remove the old per-backend functions, too.
Diffstat (limited to 'gdk/gdkselection.c')
-rw-r--r--gdk/gdkselection.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gdk/gdkselection.c b/gdk/gdkselection.c
index 302a76a2bd..9eb60f57f8 100644
--- a/gdk/gdkselection.c
+++ b/gdk/gdkselection.c
@@ -329,3 +329,24 @@ gdk_utf8_to_string_target (const gchar *str)
return GDK_DISPLAY_GET_CLASS (display)->utf8_to_string_target (display, str);
}
+
+void
+gdk_selection_clear_targets (GdkDisplay *display,
+ GdkAtom selection)
+{
+}
+
+void
+gdk_selection_add_targets (GdkWindow *window,
+ GdkAtom selection,
+ GdkAtom *targets,
+ guint n_targets)
+{
+ GdkDisplay *display;
+
+ g_return_if_fail (GDK_IS_WINDOW (window));
+
+ display = gdk_window_get_display (window);
+
+ GDK_DISPLAY_GET_CLASS (display)->add_selection_targets (display, window, selection, targets, n_targets);
+}