mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
dialogs: Add Preferred CMYK option to...
...soft-proofing profile menu. If the user has set a Preferred CMYK profile in preferences, it will be added as the second option in the combo box.
This commit is contained in:
parent
8d77d4f5d9
commit
5fe8fe3a25
1 changed files with 26 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
||||||
|
|
||||||
#include "libgimpbase/gimpbase.h"
|
#include "libgimpbase/gimpbase.h"
|
||||||
#include "libgimpcolor/gimpcolor.h"
|
#include "libgimpcolor/gimpcolor.h"
|
||||||
|
#include "libgimpconfig/gimpconfig.h"
|
||||||
#include "libgimpwidgets/gimpwidgets.h"
|
#include "libgimpwidgets/gimpwidgets.h"
|
||||||
|
|
||||||
#include "dialogs-types.h"
|
#include "dialogs-types.h"
|
||||||
|
@ -382,6 +383,31 @@ color_profile_combo_box_new (ProfileDialog *private)
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (private->dialog_type == COLOR_PROFILE_DIALOG_SELECT_SOFTPROOF_PROFILE)
|
||||||
|
{
|
||||||
|
GimpColorProfile *profile;
|
||||||
|
|
||||||
|
profile = gimp_color_config_get_cmyk_color_profile (private->config,
|
||||||
|
NULL);
|
||||||
|
if (profile)
|
||||||
|
{
|
||||||
|
GFile *file;
|
||||||
|
gchar *path;
|
||||||
|
gchar *label;
|
||||||
|
|
||||||
|
g_object_get (private->config, "cmyk-profile", &path, NULL);
|
||||||
|
file = gimp_file_new_for_config_path (path, NULL);
|
||||||
|
g_free (path);
|
||||||
|
label = g_strdup_printf (_("Preferred CMYK (%s)"),
|
||||||
|
gimp_color_profile_get_label (profile));
|
||||||
|
g_object_unref (profile);
|
||||||
|
gimp_color_profile_store_add_file (GIMP_COLOR_PROFILE_STORE (store),
|
||||||
|
file, label);
|
||||||
|
g_object_unref (file);
|
||||||
|
g_free (label);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
chooser =
|
chooser =
|
||||||
gimp_color_profile_chooser_dialog_new (_("Select Destination Profile"),
|
gimp_color_profile_chooser_dialog_new (_("Select Destination Profile"),
|
||||||
NULL,
|
NULL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue