mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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:
parent
8eb56586aa
commit
916d032f67
37 changed files with 626 additions and 535 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue