app, libgimp*, plug-ins: GimpColorButton now space-invaded.

The invasion extended to some core widgets too, in particular GimpColorPanel (a
subclass of GimpColorButton). There was quite a lot of code depending on these
widgets.
This commit is contained in:
Jehan 2023-11-24 15:35:50 +01:00
parent 8eb56586aa
commit 916d032f67
37 changed files with 626 additions and 535 deletions

View file

@ -1087,7 +1087,13 @@ gimp_widget_get_render_space (GtkWidget *widget,
g_return_val_if_fail (widget == NULL || GTK_IS_WIDGET (widget), NULL);
_gimp_widget_get_profiles (widget, config, NULL, &dest_profile);
if (config)
_gimp_widget_get_profiles (widget, config, NULL, &dest_profile);
else
/* When no GimpColorConfig is given, we just return the monitor's color
* profile, disregarding any user preferences.
*/
dest_profile = gimp_widget_get_color_profile (gtk_widget_get_toplevel (widget));
if (dest_profile)
space = gimp_color_profile_get_space (dest_profile,