Commit 8ec495f4 authored by Sven Neumann's avatar Sven Neumann

simplified the code

parent 5157dba5
......@@ -83,20 +83,19 @@ gimp_display_shell_filter_new (GimpColorConfig *config)
if (g_type_is_a (type, GIMP_TYPE_COLOR_DISPLAY))
{
GimpColorDisplay *display = gimp_color_display_new (type);
GimpColorDisplay *display;
GimpColorDisplayStack *stack;
if (display)
{
GimpColorDisplayStack *stack = gimp_color_display_stack_new ();
display = g_object_new (type,
"config", config,
NULL);
g_object_set (display, "config", config, NULL);
stack = gimp_color_display_stack_new ();
gimp_color_display_stack_add (stack, display);
gimp_color_display_stack_add (stack, display);
g_object_unref (display);
g_object_unref (display);
return stack;
}
return stack;
}
}
......
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