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.
This commit is contained in:
Jehan
2017-10-04 23:25:08 +02:00
parent e06a18b944
commit 12df7960ad

View File

@ -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);