]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkselection.c
Bug 555186 – Setting gtk-toolbar-icon-size with custom icon_size
[~andy/gtk] / gtk / gtkselection.c
index b3013aa0c6a237b5f64975167a125135bcd2d0b4..8ea2a3c93ae3c877215a365b4337b4aafc81b402 100644 (file)
@@ -1111,6 +1111,24 @@ gtk_selection_convert (GtkWidget *widget,
   return TRUE;
 }
 
+/**
+ * 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.16
+ **/
+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.