From 3f0d330a6525cecca12569719adf210969e05fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20Fr=C3=A9cinaux?= Date: Thu, 20 Jan 2011 11:53:47 +0100 Subject: [PATCH] [GI] Fix transfer annotation on gtk_dialog_add_button() The transfer annotation was (transfer full) but the caller actually doesn't own a reference of the object. This made the pygobject test suite crash because pygobject was trying to unref the returned GtkButton instance. https://bugzilla.gnome.org/show_bug.cgi?id=639949 --- gtk/gtkdialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 0aa57773d5..6a1d51f147 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -765,7 +765,7 @@ gtk_dialog_add_action_widget (GtkDialog *dialog, * appended to the end of the dialog's action area. The button widget is * returned, but usually you don't need it. * - * Return value: (transfer full): the button widget that was added + * Return value: (transfer none): the button widget that was added **/ GtkWidget* gtk_dialog_add_button (GtkDialog *dialog,