[gimp] Bug 788442 - Gimp crashes not using GEGL Operation tool.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Bug 788442 - Gimp crashes not using GEGL Operation tool.
- Date: Wed, 4 Oct 2017 21:26:38 +0000 (UTC)
commit 12df7960ad461d3c4e6fe7fab01ce2db7eacd150
Author: Jehan <jehan girinstud io>
Date: Wed Oct 4 23:25:08 2017 +0200
Bug 788442 - Gimp crashes not using GEGL Operation tool.
Properly set the pointer as a weak pointer, same as in GimpOperationTool
parent class, to make sure it is resetted to NULL upon destruction.
app/tools/gimpgegltool.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/tools/gimpgegltool.c b/app/tools/gimpgegltool.c
index f79ec41..747767c 100644
--- a/app/tools/gimpgegltool.c
+++ b/app/tools/gimpgegltool.c
@@ -476,6 +476,8 @@ gimp_gegl_tool_dialog (GimpFilterTool *filter_tool)
/* The options vbox */
o_tool->options_gui =
gtk_label_new (_("Select an operation from the list above"));
+ g_object_add_weak_pointer (G_OBJECT (o_tool->options_gui),
+ (gpointer) &o_tool->options_gui);
gimp_label_set_attributes (GTK_LABEL (o_tool->options_gui),
PANGO_ATTR_STYLE, PANGO_STYLE_ITALIC,
-1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]