diff --git a/ChangeLog b/ChangeLog index a3deb7c10f..f464ec3a55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-10-01 Torsten Schoenfeld + + * docs/reference/gtk/gtk-sections.txt: + * gtk/gtk.symbols: + * gtk/gtkselection.c: + * gtk/gtkselection.h: Add gtk_selection_data_get_selection to + retrieve the sealed struct field GtkSelectionData.selection. + 2008-10-01 Tor Lillqvist * gtk/gtkscalebutton.c: Don't #define _GNU_SOURCE on Windows as it diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt index 1565e277f2..1eb954d8a3 100644 --- a/docs/reference/gtk/gtk-sections.txt +++ b/docs/reference/gtk/gtk-sections.txt @@ -5850,6 +5850,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_length gtk_selection_data_get_data_type diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols index 483453aca7..f2fd15e76a 100644 --- a/gtk/gtk.symbols +++ b/gtk/gtk.symbols @@ -3460,6 +3460,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 diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index b3013aa0c6..8ea2a3c93a 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. diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h index 0cd474c79c..0106a9eb83 100644 --- a/gtk/gtkselection.h +++ b/gtk/gtkselection.h @@ -147,6 +147,7 @@ gboolean gtk_selection_convert (GtkWidget *widget, 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);