summaryrefslogtreecommitdiff
path: root/gtk/gtkselection.c
diff options
context:
space:
mode:
authorTorsten Schönfeld <tsch@src.gnome.org>2008-10-01 18:53:49 +0000
committerTorsten Schönfeld <tsch@src.gnome.org>2008-10-01 18:53:49 +0000
commit0697bb7942fdfc23103dc35b1e3ff5a492931b72 (patch)
tree82bc4b7a2c68843e77ad64f475ddb8c75a930028 /gtk/gtkselection.c
parent0df29ef510350d135520bb6b64ec1c0cf8cddb0b (diff)
downloadgtk+-0697bb7942fdfc23103dc35b1e3ff5a492931b72.tar.gz
Add gtk_selection_data_get_selection to retrieve the sealed struct field
GtkSelectionData.selection. svn path=/trunk/; revision=21564
Diffstat (limited to 'gtk/gtkselection.c')
-rw-r--r--gtk/gtkselection.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index b3013aa0c6..8ea2a3c93a 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -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.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.
*