Commit 3b4f2ec9 authored by Michael Natterer's avatar Michael Natterer 😴

app: add a GimpCanvasProxyGroup that will be used for guides

parent 07051535
......@@ -293,6 +293,11 @@ gimp_display_shell_init (GimpDisplayShell *shell)
shell->canvas_item = gimp_canvas_group_new ();
shell->guides = gimp_canvas_proxy_group_new ();
gimp_canvas_group_add_item (GIMP_CANVAS_GROUP (shell->canvas_item),
shell->guides);
g_object_unref (shell->guides);
shell->sample_points = gimp_canvas_proxy_group_new ();
gimp_canvas_group_add_item (GIMP_CANVAS_GROUP (shell->canvas_item),
shell->sample_points);
......@@ -805,6 +810,7 @@ gimp_display_shell_dispose (GObject *object)
{
g_object_unref (shell->canvas_item);
shell->canvas_item = NULL;
shell->guides = NULL;
shell->sample_points = NULL;
}
......
......@@ -136,6 +136,7 @@ struct _GimpDisplayShell
cairo_pattern_t *checkerboard; /* checkerboard pattern */
GimpCanvasItem *canvas_item; /* items drawn on the canvas */
GimpCanvasItem *guides; /* item proxies of guides */
GimpCanvasItem *sample_points; /* item proxies of sample points */
guint title_idle_id; /* title update idle ID */
......
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