gtk+ r21564 - in trunk: . docs/reference/gtk gtk
- From: tsch svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21564 - in trunk: . docs/reference/gtk gtk
- Date: Wed, 1 Oct 2008 18:53:49 +0000 (UTC)
Author: tsch
Date: Wed Oct 1 18:53:49 2008
New Revision: 21564
URL: http://svn.gnome.org/viewvc/gtk+?rev=21564&view=rev
Log:
Add gtk_selection_data_get_selection to retrieve the sealed struct field
GtkSelectionData.selection.
Modified:
trunk/ChangeLog
trunk/docs/reference/gtk/gtk-sections.txt
trunk/gtk/gtk.symbols
trunk/gtk/gtkselection.c
trunk/gtk/gtkselection.h
Modified: trunk/docs/reference/gtk/gtk-sections.txt
==============================================================================
--- trunk/docs/reference/gtk/gtk-sections.txt (original)
+++ trunk/docs/reference/gtk/gtk-sections.txt Wed Oct 1 18:53:49 2008
@@ -5850,6 +5850,7 @@
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
Modified: trunk/gtk/gtk.symbols
==============================================================================
--- trunk/gtk/gtk.symbols (original)
+++ trunk/gtk/gtk.symbols Wed Oct 1 18:53:49 2008
@@ -3460,6 +3460,7 @@
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
Modified: trunk/gtk/gtkselection.c
==============================================================================
--- trunk/gtk/gtkselection.c (original)
+++ trunk/gtk/gtkselection.c Wed Oct 1 18:53:49 2008
@@ -1112,6 +1112,24 @@
}
/**
+ * 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.
*
Modified: trunk/gtk/gtkselection.h
==============================================================================
--- trunk/gtk/gtkselection.h (original)
+++ trunk/gtk/gtkselection.h Wed Oct 1 18:53:49 2008
@@ -147,6 +147,7 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]