Index: gtk/gtk.symbols
===================================================================
--- gtk/gtk.symbols	(revision 21134)
+++ gtk/gtk.symbols	(working copy)
@@ -3447,6 +3447,7 @@ gtk_selection_clear_targets
 gtk_selection_convert
 gtk_selection_data_copy
 gtk_selection_data_free
+gtk_selection_data_get_selection
 gtk_selection_data_get_target
 gtk_selection_data_get_data_type
 gtk_selection_data_get_display
Index: gtk/gtkselection.c
===================================================================
--- gtk/gtkselection.c	(revision 21134)
+++ gtk/gtkselection.c	(working copy)
@@ -1112,6 +1112,24 @@ gtk_selection_convert (GtkWidget *widget
 }
 
 /**
+ * gtk_selection_data_get_selection:
+ * @selection_data: a pointer to a #GtkSelectionData structure.
+ *
+ * Retrieves the selection #GdkAtom of the selection data.
+ *
+ * Returns: the selection #GdkAtom of the selection data.
+ *
+ * Since: 2.14
+ **/
+GdkAtom
+gtk_selection_data_get_selection (GtkSelectionData *selection_data)
+{
+  g_return_val_if_fail (selection_data != NULL, 0);
+
+  return selection_data->selection;
+}
+
+/**
  * gtk_selection_data_get_target:
  * @selection_data: a pointer to a #GtkSelectionData structure.
  *
Index: gtk/gtkselection.h
===================================================================
--- gtk/gtkselection.h	(revision 21134)
+++ gtk/gtkselection.h	(working copy)
@@ -147,6 +147,7 @@ gboolean gtk_selection_convert       (Gt
 				      GdkAtom               target,
 				      guint32               time_);
 
+GdkAtom       gtk_selection_data_get_selection (GtkSelectionData *selection_data);
 GdkAtom       gtk_selection_data_get_target    (GtkSelectionData *selection_data);
 GdkAtom       gtk_selection_data_get_data_type (GtkSelectionData *selection_data);
 gint          gtk_selection_data_get_format    (GtkSelectionData *selection_data);
Index: docs/reference/gtk/gtk-sections.txt
===================================================================
--- docs/reference/gtk/gtk-sections.txt	(revision 21134)
+++ docs/reference/gtk/gtk-sections.txt	(working copy)
@@ -5845,6 +5845,7 @@ gtk_selection_data_targets_include_image
 gtk_selection_data_targets_include_text
 gtk_selection_data_targets_include_uri
 gtk_selection_data_targets_include_rich_text
+gtk_selection_data_get_selection
 gtk_selection_data_get_data
 gtk_selection_data_get_data_type
 gtk_selection_data_get_display
