X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=gtk%2Fgtkselection.c;h=8ea2a3c93ae3c877215a365b4337b4aafc81b402;hb=4dc4227c70a49e67c930e0ebaeab74e3d28f004b;hp=b3013aa0c6a237b5f64975167a125135bcd2d0b4;hpb=f88dcb6b890d9c4ee8f66128453439afa42e0e5d;p=~andy%2Fgtk diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index b3013aa0c..8ea2a3c93 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -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.