diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2005-05-02 16:17:12 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-05-02 16:17:12 +0000 |
commit | c5eedc04203cc8d5ef822755fb42ac5509e90bc0 (patch) | |
tree | 23f01a8b606a889ff112d38fcbee8a45fc6900e5 /gtk/gtkselection.c | |
parent | fe59413cd814a99d793140d5bc394dc2208c1ae0 (diff) | |
download | gdk-pixbuf-c5eedc04203cc8d5ef822755fb42ac5509e90bc0.tar.gz |
Doc fixups
Diffstat (limited to 'gtk/gtkselection.c')
-rw-r--r-- | gtk/gtkselection.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index 328c5d390..f3230902f 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -2553,26 +2553,26 @@ gtk_selection_default_handler (GtkWidget *widget, /** * gtk_selection_data_copy: - * @selection_data: a pointer to a #GtkSelectionData structure. + * @data: a pointer to a #GtkSelectionData structure. * * Makes a copy of a #GtkSelectionData structure and its data. * * Return value: a pointer to a copy of @data. **/ GtkSelectionData* -gtk_selection_data_copy (GtkSelectionData *selection_data) +gtk_selection_data_copy (GtkSelectionData *data) { GtkSelectionData *new_data; - g_return_val_if_fail (selection_data != NULL, NULL); + g_return_val_if_fail (data != NULL, NULL); new_data = g_new (GtkSelectionData, 1); *new_data = *selection_data; - if (selection_data->data) + if (data->data) { - new_data->data = g_malloc (selection_data->length + 1); - memcpy (new_data->data, selection_data->data, selection_data->length + 1); + new_data->data = g_malloc (data->length + 1); + memcpy (new_data->data, data->data, data->length + 1); } return new_data; |