talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 588426ae4c5d396a466caa335e4095911f22bedd
parent 8a20504f50e8aa9c5d9be5d599c383323a0f701d
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sun, 28 Oct 2018 14:54:13 +0100

Make folder color button in spelling prefs show correct color.

Diffstat:
Msrc/prefs_spelling.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/prefs_spelling.c b/src/prefs_spelling.c @@ -79,7 +79,7 @@ static void prefs_spelling_colorsel(GtkWidget *widget, rgbcolor = colorsel_select_color_rgb(_("Pick color for misspelled word"), spelling->misspell_col); - gtkut_set_widget_bgcolor_rgb(spelling->misspelled_colorbtn, rgbcolor); + gtkut_set_button_color(spelling->misspelled_colorbtn, &rgbcolor); spelling->misspell_col = rgbcolor; } @@ -208,7 +208,7 @@ static void prefs_spelling_create_widget(PrefsPage *_page, GtkWindow *window, gp gtk_label_set_justify(GTK_LABEL(misspelled_label), GTK_JUSTIFY_RIGHT); gtk_label_set_xalign(GTK_LABEL(misspelled_label), 1.0); - misspelled_colorbtn = GTKUT_COLOR_BUTTON(); + misspelled_colorbtn = gtk_button_new_with_label(""); gtk_widget_show(misspelled_colorbtn); gtk_box_pack_start(GTK_BOX(misspelled_hbox), misspelled_colorbtn, FALSE, FALSE, 0); @@ -265,7 +265,7 @@ static void prefs_spelling_create_widget(PrefsPage *_page, GtkWindow *window, gp G_CALLBACK(prefs_spelling_colorsel), prefs_spelling); prefs_spelling->misspell_col = prefs_common.color[COL_MISSPELLED]; - gtkut_set_widget_bgcolor_rgb(misspelled_colorbtn, prefs_spelling->misspell_col); + gtkut_set_button_color(misspelled_colorbtn, &prefs_spelling->misspell_col); prefs_spelling->window = GTK_WIDGET(window); prefs_spelling->automatic_frame = automatic_frame;