GtkSharp/glue/selectiondata.c
Mike Kestner 37aad1b278 2004-01-27 Mike Kestner <mkestner@ximian.com>
* glue/selectiondata.c : expose data field.
	* gtk/SelectionData.custom : add Data property.
	[Fixes #53397]

svn path=/trunk/gtk-sharp/; revision=22563
2004-01-28 04:50:19 +00:00

33 lines
723 B
C

/* selectiondata.c : Glue to access fields of GtkSelectionData
*
* Author: Mike Kestner <mkestner@speakeasy.net>
*
* <c> 2003 Novell, Inc.
*/
#include <gtk/gtkwidget.h>
#include <gtk/gtkselection.h>
gint gtksharp_gtk_selection_data_get_length (GtkSelectionData *data);
gint gtksharp_gtk_selection_data_get_format (GtkSelectionData *data);
guchar *gtksharp_gtk_selection_data_get_data_pointer (GtkSelectionData *data);
guchar *
gtksharp_gtk_selection_data_get_data_pointer (GtkSelectionData *data)
{
return data->data;
}
gint
gtksharp_gtk_selection_data_get_length (GtkSelectionData *data)
{
return data->length;
}
gint
gtksharp_gtk_selection_data_get_format (GtkSelectionData *data)
{
return data->format;
}