Commit 6464b47b authored by Michael Natterer's avatar Michael Natterer 😴

app: reorder callbacks in view-commands.c, same order as in the header

parent edc903ca
......@@ -603,45 +603,45 @@ view_display_intent_cmd_callback (GtkAction *action,
}
void
view_softproof_intent_cmd_callback (GtkAction *action,
GtkAction *current,
gpointer data)
view_display_bpc_cmd_callback (GtkAction *action,
gpointer data)
{
GimpDisplayShell *shell;
GimpColorConfig *color_config;
GimpColorRenderingIntent value;
GimpDisplayShell *shell;
GimpColorConfig *color_config;
gboolean active;
return_if_no_shell (shell, data);
color_config = gimp_display_shell_get_color_config (shell);
value = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (action));
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
if (value != gimp_color_config_get_simulation_intent (color_config))
if (active != gimp_color_config_get_display_bpc (color_config))
{
g_object_set (color_config,
"simulation-rendering-intent", value,
"display-use-black-point-compensation", active,
NULL);
shell->color_config_set = TRUE;
}
}
void
view_display_bpc_cmd_callback (GtkAction *action,
gpointer data)
view_softproof_intent_cmd_callback (GtkAction *action,
GtkAction *current,
gpointer data)
{
GimpDisplayShell *shell;
GimpColorConfig *color_config;
gboolean active;
GimpDisplayShell *shell;
GimpColorConfig *color_config;
GimpColorRenderingIntent value;
return_if_no_shell (shell, data);
color_config = gimp_display_shell_get_color_config (shell);
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
value = gtk_radio_action_get_current_value (GTK_RADIO_ACTION (action));
if (active != gimp_color_config_get_display_bpc (color_config))
if (value != gimp_color_config_get_simulation_intent (color_config))
{
g_object_set (color_config,
"display-use-black-point-compensation", active,
"simulation-rendering-intent", value,
NULL);
shell->color_config_set = TRUE;
}
......
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