[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-436-g588426a

ticho at claws-mail.org ticho at claws-mail.org
Sun Oct 28 14:54:23 CET 2018


The branch, gtk3 has been updated
       via  588426ae4c5d396a466caa335e4095911f22bedd (commit)
      from  8a20504f50e8aa9c5d9be5d599c383323a0f701d (commit)

Summary of changes:
 src/prefs_spelling.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 588426ae4c5d396a466caa335e4095911f22bedd
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Oct 28 14:54:13 2018 +0100

    Make folder color button in spelling prefs show correct color.

diff --git a/src/prefs_spelling.c b/src/prefs_spelling.c
index efb1e19..9c596bf 100644
--- 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;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list