typedef struct _GtkTargetList GtkTargetList;
typedef struct _GtkTargetEntry GtkTargetEntry;
+#define GTK_TYPE_SELECTION_DATA (gtk_selection_data_get_type ())
+
/* The contents of a selection are returned in a GtkSelectionData
* structure. selection/target identify the request. type specifies
* the type of the return; if length < 0, and the data should be
struct _GtkSelectionData
{
- GdkAtom selection;
- GdkAtom target;
- GdkAtom type;
- gint format;
- guchar *data;
- gint length;
+ GdkAtom selection;
+ GdkAtom target;
+ GdkAtom type;
+ gint format;
+ guchar *data;
+ gint length;
+ GdkDisplay *display;
};
struct _GtkTargetEntry {
/* Public interface */
-gboolean gtk_selection_owner_set (GtkWidget *widget,
- GdkAtom selection,
- guint32 time);
+gboolean gtk_selection_owner_set (GtkWidget *widget,
+ GdkAtom selection,
+ guint32 time);
+gboolean gtk_selection_owner_set_for_display (GdkDisplay *display,
+ GtkWidget *widget,
+ GdkAtom selection,
+ guint32 time);
+
void gtk_selection_add_target (GtkWidget *widget,
GdkAtom selection,
GdkAtom target,
const guchar *data,
gint length);
gboolean gtk_selection_data_set_text (GtkSelectionData *selection_data,
- const guchar *str);
+ const gchar *str,
+ gint len);
guchar * gtk_selection_data_get_text (GtkSelectionData *selection_data);
gboolean gtk_selection_data_get_targets (GtkSelectionData *selection_data,
GdkEventSelection *event);
gboolean gtk_selection_property_notify (GtkWidget *widget,
GdkEventProperty *event);
-GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data);
-void gtk_selection_data_free (GtkSelectionData *data);
+
+GType gtk_selection_data_get_type (void);
+GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data);
+void gtk_selection_data_free (GtkSelectionData *data);