mirror of https://github.com/GNOME/gimp.git
libgimpwidgets: rename gimp_color_config_get_printer_color_profile()
to gimp_color_config_get_simulation_color_profile(), along with various internal "printer" strings. Also reduce the number of user-visible "print" stuff from the preferences color management page.
This commit is contained in:
parent
b4f34375b7
commit
fcf5b708e5
|
@ -1397,8 +1397,8 @@ prefs_dialog_new (Gimp *gimp,
|
|||
prefs_profile_combo_box_add (color_config,
|
||||
"printer-profile",
|
||||
store,
|
||||
_("Select Printer Color Profile"),
|
||||
_("_Print simulation profile:"),
|
||||
_("Select Simulation (Softproofing) Color Profile"),
|
||||
_("_Simulation profile:"),
|
||||
GTK_TABLE (table), row++, size_group);
|
||||
|
||||
prefs_enum_combo_box_add (color_config,
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
#define CMYK_PROFILE_BLURB \
|
||||
_("The CMYK color profile used to convert between RGB and CMYK.")
|
||||
|
||||
#define PRINTER_PROFILE_BLURB \
|
||||
#define SIMULATION_PROFILE_BLURB \
|
||||
_("The color profile to use for soft proofing from your image's " \
|
||||
"color space to some other color space, including " \
|
||||
"soft proofing to a printer or other output device profile. ")
|
||||
|
@ -112,7 +112,7 @@ enum
|
|||
PROP_CMYK_PROFILE,
|
||||
PROP_DISPLAY_PROFILE,
|
||||
PROP_DISPLAY_PROFILE_FROM_GDK,
|
||||
PROP_PRINTER_PROFILE,
|
||||
PROP_SIMULATION_PROFILE,
|
||||
PROP_DISPLAY_RENDERING_INTENT,
|
||||
PROP_DISPLAY_USE_BPC,
|
||||
PROP_SIMULATION_RENDERING_INTENT,
|
||||
|
@ -145,7 +145,7 @@ static void gimp_color_config_set_cmyk_profile (GimpColorConfig *config,
|
|||
static void gimp_color_config_set_display_profile (GimpColorConfig *config,
|
||||
const gchar *filename,
|
||||
GError **error);
|
||||
static void gimp_color_config_set_printer_profile (GimpColorConfig *config,
|
||||
static void gimp_color_config_set_simulation_profile (GimpColorConfig *config,
|
||||
const gchar *filename,
|
||||
GError **error);
|
||||
|
||||
|
@ -213,10 +213,11 @@ gimp_color_config_class_init (GimpColorConfigClass *klass)
|
|||
FALSE,
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
GIMP_CONFIG_PROP_PATH (object_class, PROP_PRINTER_PROFILE,
|
||||
GIMP_CONFIG_PROP_PATH (object_class, PROP_SIMULATION_PROFILE,
|
||||
/* FIXME: 3.0: change to simulation-profile */
|
||||
"printer-profile",
|
||||
_("Print simulation profile"),
|
||||
PRINTER_PROFILE_BLURB,
|
||||
_("Simulation profile for softproofing"),
|
||||
SIMULATION_PROFILE_BLURB,
|
||||
GIMP_CONFIG_PATH_FILE, NULL,
|
||||
GIMP_PARAM_STATIC_STRINGS);
|
||||
|
||||
|
@ -339,8 +340,8 @@ gimp_color_config_set_property (GObject *object,
|
|||
case PROP_DISPLAY_PROFILE_FROM_GDK:
|
||||
color_config->display_profile_from_gdk = g_value_get_boolean (value);
|
||||
break;
|
||||
case PROP_PRINTER_PROFILE:
|
||||
gimp_color_config_set_printer_profile (color_config,
|
||||
case PROP_SIMULATION_PROFILE:
|
||||
gimp_color_config_set_simulation_profile (color_config,
|
||||
g_value_get_string (value),
|
||||
&error);
|
||||
break;
|
||||
|
@ -407,7 +408,7 @@ gimp_color_config_get_property (GObject *object,
|
|||
case PROP_DISPLAY_PROFILE_FROM_GDK:
|
||||
g_value_set_boolean (value, color_config->display_profile_from_gdk);
|
||||
break;
|
||||
case PROP_PRINTER_PROFILE:
|
||||
case PROP_SIMULATION_PROFILE:
|
||||
g_value_set_string (value, color_config->printer_profile);
|
||||
break;
|
||||
case PROP_DISPLAY_RENDERING_INTENT:
|
||||
|
@ -552,7 +553,7 @@ gimp_color_config_get_display_color_profile (GimpColorConfig *config,
|
|||
}
|
||||
|
||||
GimpColorProfile *
|
||||
gimp_color_config_get_printer_color_profile (GimpColorConfig *config,
|
||||
gimp_color_config_get_simulation_color_profile (GimpColorConfig *config,
|
||||
GError **error)
|
||||
{
|
||||
GimpColorProfile *profile = NULL;
|
||||
|
@ -731,7 +732,7 @@ gimp_color_config_set_display_profile (GimpColorConfig *config,
|
|||
}
|
||||
|
||||
static void
|
||||
gimp_color_config_set_printer_profile (GimpColorConfig *config,
|
||||
gimp_color_config_set_simulation_profile (GimpColorConfig *config,
|
||||
const gchar *filename,
|
||||
GError **error)
|
||||
{
|
||||
|
|
|
@ -88,7 +88,7 @@ GimpColorProfile * gimp_color_config_get_cmyk_color_profile (GimpColorConfig
|
|||
GError **error);
|
||||
GimpColorProfile * gimp_color_config_get_display_color_profile (GimpColorConfig *config,
|
||||
GError **error);
|
||||
GimpColorProfile * gimp_color_config_get_printer_color_profile (GimpColorConfig *config,
|
||||
GimpColorProfile * gimp_color_config_get_simulation_color_profile (GimpColorConfig *config,
|
||||
GError **error);
|
||||
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ EXPORTS
|
|||
gimp_color_config_get_cmyk_color_profile
|
||||
gimp_color_config_get_display_color_profile
|
||||
gimp_color_config_get_gray_color_profile
|
||||
gimp_color_config_get_printer_color_profile
|
||||
gimp_color_config_get_rgb_color_profile
|
||||
gimp_color_config_get_simulation_color_profile
|
||||
gimp_color_config_get_type
|
||||
gimp_color_management_mode_get_type
|
||||
gimp_color_rendering_intent_get_type
|
||||
|
|
|
@ -711,7 +711,8 @@ gimp_widget_get_color_transform (GtkWidget *widget,
|
|||
return NULL;
|
||||
|
||||
case GIMP_COLOR_MANAGEMENT_SOFTPROOF:
|
||||
proof_profile = gimp_color_config_get_printer_color_profile (config, NULL);
|
||||
proof_profile = gimp_color_config_get_simulation_color_profile (config,
|
||||
NULL);
|
||||
/* fallthru */
|
||||
|
||||
case GIMP_COLOR_MANAGEMENT_DISPLAY:
|
||||
|
|
|
@ -347,7 +347,7 @@ cdisplay_lcms_update_profile_label (CdisplayLcms *lcms,
|
|||
}
|
||||
else if (strcmp (name, "printer-profile") == 0)
|
||||
{
|
||||
profile = gimp_color_config_get_printer_color_profile (config, NULL);
|
||||
profile = gimp_color_config_get_simulation_color_profile (config, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue