summaryrefslogtreecommitdiff
path: root/gtk/gtkselection.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-12-17 15:41:59 +0100
committerBenjamin Otte <otte@redhat.com>2010-12-17 16:47:57 +0100
commitd50c582961a8b2fc3d5fb0480a3ad8fda2caeb1e (patch)
tree223054c6cf583fa5b21dd833ec24d632d44bb62b /gtk/gtkselection.h
parent2c8c1c6df49b38b525b51a4773758b08a648f81e (diff)
downloadgtk+-d50c582961a8b2fc3d5fb0480a3ad8fda2caeb1e.tar.gz
selection: constify GtkSelectionData getters
Diffstat (limited to 'gtk/gtkselection.h')
-rw-r--r--gtk/gtkselection.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h
index eddab0f4ad..bdb1312e1f 100644
--- a/gtk/gtkselection.h
+++ b/gtk/gtkselection.h
@@ -149,13 +149,13 @@ 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);
-const guchar *gtk_selection_data_get_data (GtkSelectionData *selection_data);
-gint gtk_selection_data_get_length (GtkSelectionData *selection_data);
-GdkDisplay *gtk_selection_data_get_display (GtkSelectionData *selection_data);
+GdkAtom gtk_selection_data_get_selection (const GtkSelectionData *selection_data);
+GdkAtom gtk_selection_data_get_target (const GtkSelectionData *selection_data);
+GdkAtom gtk_selection_data_get_data_type (const GtkSelectionData *selection_data);
+gint gtk_selection_data_get_format (const GtkSelectionData *selection_data);
+const guchar *gtk_selection_data_get_data (const GtkSelectionData *selection_data);
+gint gtk_selection_data_get_length (const GtkSelectionData *selection_data);
+GdkDisplay *gtk_selection_data_get_display (const GtkSelectionData *selection_data);
void gtk_selection_data_set (GtkSelectionData *selection_data,
GdkAtom type,
@@ -165,23 +165,23 @@ void gtk_selection_data_set (GtkSelectionData *selection_data,
gboolean gtk_selection_data_set_text (GtkSelectionData *selection_data,
const gchar *str,
gint len);
-guchar * gtk_selection_data_get_text (GtkSelectionData *selection_data);
+guchar * gtk_selection_data_get_text (const GtkSelectionData *selection_data);
gboolean gtk_selection_data_set_pixbuf (GtkSelectionData *selection_data,
GdkPixbuf *pixbuf);
-GdkPixbuf *gtk_selection_data_get_pixbuf (GtkSelectionData *selection_data);
+GdkPixbuf *gtk_selection_data_get_pixbuf (const GtkSelectionData *selection_data);
gboolean gtk_selection_data_set_uris (GtkSelectionData *selection_data,
gchar **uris);
-gchar **gtk_selection_data_get_uris (GtkSelectionData *selection_data);
+gchar **gtk_selection_data_get_uris (const GtkSelectionData *selection_data);
-gboolean gtk_selection_data_get_targets (GtkSelectionData *selection_data,
+gboolean gtk_selection_data_get_targets (const GtkSelectionData *selection_data,
GdkAtom **targets,
gint *n_atoms);
-gboolean gtk_selection_data_targets_include_text (GtkSelectionData *selection_data);
-gboolean gtk_selection_data_targets_include_rich_text (GtkSelectionData *selection_data,
+gboolean gtk_selection_data_targets_include_text (const GtkSelectionData *selection_data);
+gboolean gtk_selection_data_targets_include_rich_text (const GtkSelectionData *selection_data,
GtkTextBuffer *buffer);
-gboolean gtk_selection_data_targets_include_image (GtkSelectionData *selection_data,
+gboolean gtk_selection_data_targets_include_image (const GtkSelectionData *selection_data,
gboolean writable);
-gboolean gtk_selection_data_targets_include_uri (GtkSelectionData *selection_data);
+gboolean gtk_selection_data_targets_include_uri (const GtkSelectionData *selection_data);
gboolean gtk_targets_include_text (GdkAtom *targets,
gint n_targets);
gboolean gtk_targets_include_rich_text (GdkAtom *targets,
@@ -210,7 +210,7 @@ gboolean _gtk_selection_property_notify (GtkWidget *widget,
GdkEventProperty *event);
GType gtk_selection_data_get_type (void) G_GNUC_CONST;
-GtkSelectionData *gtk_selection_data_copy (GtkSelectionData *data);
+GtkSelectionData *gtk_selection_data_copy (const GtkSelectionData *data);
void gtk_selection_data_free (GtkSelectionData *data);
GType gtk_target_entry_get_type (void) G_GNUC_CONST;