[gedit/gnome-3-30] file chooser: use g_object_unref to free a native dialog
- From: Sébastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-30] file chooser: use g_object_unref to free a native dialog
- Date: Wed, 26 Sep 2018 20:21:59 +0000 (UTC)
commit d6498a40fefc0bc5f39090b497b2e839ecb63901
Author: Sebastien Lafargue <slafargue gnome org>
Date: Wed Sep 26 22:07:28 2018 +0200
file chooser: use g_object_unref to free a native dialog
Not freeing the dialog had the side effect of not
removing it's ref on the window and re-using it next time
with a bad location.
fix issue #74
gedit/gedit-file-chooser-dialog-gtk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gedit/gedit-file-chooser-dialog-gtk.c b/gedit/gedit-file-chooser-dialog-gtk.c
index 96d3e0e13..c34e7dafa 100644
--- a/gedit/gedit-file-chooser-dialog-gtk.c
+++ b/gedit/gedit-file-chooser-dialog-gtk.c
@@ -214,7 +214,7 @@ chooser_hide (GeditFileChooserDialog *dialog)
static void
chooser_destroy (GeditFileChooserDialog *dialog)
{
- //gtk_widget_destroy (GTK_WIDGET (dialog));
+ g_object_unref (dialog);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]