Commit 605123d7 authored by Michael Natterer's avatar Michael Natterer 😴

app: add weak pointers for the curves and levels hisrogram view members

so we don't run into the same warnings on tool shotdown we already
fixed for tool startup.
parent 42e9ddd4
......@@ -488,6 +488,10 @@ gimp_curves_tool_dialog (GimpFilterTool *filter_tool)
gtk_widget_show (frame);
tool->graph = gimp_curve_view_new ();
g_object_add_weak_pointer (G_OBJECT (tool->graph),
(gpointer) &tool->graph);
gimp_curve_view_set_range_x (GIMP_CURVE_VIEW (tool->graph), 0, 255);
gimp_curve_view_set_range_y (GIMP_CURVE_VIEW (tool->graph), 0, 255);
gtk_widget_set_size_request (tool->graph,
......@@ -420,6 +420,10 @@ gimp_levels_tool_dialog (GimpFilterTool *filter_tool)
gtk_widget_show (vbox2);
tool->histogram_view = gimp_histogram_view_new (FALSE);
g_object_add_weak_pointer (G_OBJECT (tool->histogram_view),
(gpointer) &tool->histogram_view);
gtk_box_pack_start (GTK_BOX (vbox2), tool->histogram_view, TRUE, TRUE, 0);
gtk_widget_show (GTK_WIDGET (tool->histogram_view));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment