summaryrefslogtreecommitdiff
path: root/gtk/gtkselection.h
diff options
context:
space:
mode:
authorTim Janik <timj@src.gnome.org>2008-06-20 11:09:36 +0000
committerTim Janik <timj@src.gnome.org>2008-06-20 11:09:36 +0000
commit161f29ca55531e4fe0ed1afde7874df5c937bad9 (patch)
treeac41d185a59bf48979290d82c79606b8cf108dcc /gtk/gtkselection.h
parent847b87eb9fe9ed355a35ea97cee6316ac32e160a (diff)
downloadgtk+-161f29ca55531e4fe0ed1afde7874df5c937bad9.tar.gz
Seal GtkSelectionData
svn path=/trunk/; revision=20619
Diffstat (limited to 'gtk/gtkselection.h')
-rw-r--r--gtk/gtkselection.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h
index 7db71ecbb4..fdc5c6344b 100644
--- a/gtk/gtkselection.h
+++ b/gtk/gtkselection.h
@@ -58,13 +58,13 @@ typedef struct _GtkTargetEntry GtkTargetEntry;
struct _GtkSelectionData
{
- GdkAtom selection;
- GdkAtom target;
- GdkAtom type;
- gint format;
- guchar *data;
- gint length;
- GdkDisplay *display;
+ GdkAtom GSEAL (selection);
+ GdkAtom GSEAL (target);
+ GdkAtom GSEAL (type);
+ gint GSEAL (format);
+ guchar *GSEAL (data);
+ gint GSEAL (length);
+ GdkDisplay *GSEAL (display);
};
struct _GtkTargetEntry {
@@ -148,6 +148,22 @@ gboolean gtk_selection_convert (GtkWidget *widget,
GdkAtom selection,
GdkAtom target,
guint32 time_);
+void gtk_selection_data_set_target (GtkSelectionData *selection_data,
+ GdkAtom target);
+GdkAtom gtk_selection_data_get_target (GtkSelectionData *selection_data);
+void gtk_selection_data_set_data_type (GtkSelectionData *selection_data,
+ GdkAtom target);
+GdkAtom gtk_selection_data_get_data_type (GtkSelectionData *selection_data);
+void gtk_selection_data_set_format (GtkSelectionData *selection_data,
+ gint format);
+gint gtk_selection_data_get_format (GtkSelectionData *selection_data);
+void gtk_selection_data_set_data (GtkSelectionData *selection_data,
+ const guchar *data);
+const guchar *gtk_selection_data_get_data (GtkSelectionData *selection_data);
+void gtk_selection_data_set_length (GtkSelectionData *selection_data,
+ gint length);
+gint gtk_selection_data_get_length (GtkSelectionData *selection_data);
+GdkDisplay gtk_selection_data_get_display (GtkSelectionData *selection_data);
void gtk_selection_data_set (GtkSelectionData *selection_data,
GdkAtom type,
gint format,