diff --git a/app/actions/help-commands.c b/app/actions/help-commands.c index bf1aa32cc3..9ce2ad2f44 100644 --- a/app/actions/help-commands.c +++ b/app/actions/help-commands.c @@ -1146,10 +1146,7 @@ void dialogs_display_filters_cmd_callback (GtkWidget *widget, gpointer client_data) { - GDisplay * gdisp; - gdisp = gdisplay_active (); - - gdisplay_color_ui(gdisp ? gdisp->gimage : NULL); + gdisplay_color_ui (gdisplay_active ()); } void diff --git a/app/commands.c b/app/commands.c index bf1aa32cc3..9ce2ad2f44 100644 --- a/app/commands.c +++ b/app/commands.c @@ -1146,10 +1146,7 @@ void dialogs_display_filters_cmd_callback (GtkWidget *widget, gpointer client_data) { - GDisplay * gdisp; - gdisp = gdisplay_active (); - - gdisplay_color_ui(gdisp ? gdisp->gimage : NULL); + gdisplay_color_ui (gdisplay_active ()); } void diff --git a/app/gui/commands.c b/app/gui/commands.c index bf1aa32cc3..9ce2ad2f44 100644 --- a/app/gui/commands.c +++ b/app/gui/commands.c @@ -1146,10 +1146,7 @@ void dialogs_display_filters_cmd_callback (GtkWidget *widget, gpointer client_data) { - GDisplay * gdisp; - gdisp = gdisplay_active (); - - gdisplay_color_ui(gdisp ? gdisp->gimage : NULL); + gdisplay_color_ui (gdisplay_active ()); } void diff --git a/app/gui/help-commands.c b/app/gui/help-commands.c index bf1aa32cc3..9ce2ad2f44 100644 --- a/app/gui/help-commands.c +++ b/app/gui/help-commands.c @@ -1146,10 +1146,7 @@ void dialogs_display_filters_cmd_callback (GtkWidget *widget, gpointer client_data) { - GDisplay * gdisp; - gdisp = gdisplay_active (); - - gdisplay_color_ui(gdisp ? gdisp->gimage : NULL); + gdisplay_color_ui (gdisplay_active ()); } void