[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-439-g996b755

ticho at claws-mail.org ticho at claws-mail.org
Sun Oct 28 15:05:32 CET 2018


The branch, gtk3 has been updated
       via  996b75505f7015eac8d99d74b512e6f406366dda (commit)
      from  bba408b6b16b5fcd28ad5cf7927ed332c79d6b77 (commit)

Summary of changes:
 src/gtk/gtkutils.h     |    2 --
 src/prefs_msg_colors.c |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 996b75505f7015eac8d99d74b512e6f406366dda
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Oct 28 15:05:16 2018 +0100

    Get rid of now-unneeded GTKUT_COLOR_BUTTON() macro from gtkutils.h.

diff --git a/src/gtk/gtkutils.h b/src/gtk/gtkutils.h
index f81831f..7d2d9b3 100644
--- a/src/gtk/gtkutils.h
+++ b/src/gtk/gtkutils.h
@@ -57,8 +57,6 @@
 	GTK_CMCLIST_GET_CLASS(clist)->refresh(clist)
 
 #define GTKUT_COLOR_BUTTON_LABEL "\x20\xE2\x80\x83\x20"
-#define GTKUT_COLOR_BUTTON() \
-	gtk_button_new_with_label(GTKUT_COLOR_BUTTON_LABEL)
 
 /* Set "color" to the same color as "rgba" */
 #define GTKUT_GDKRGBA_TO_GDKCOLOR(rgba, color) { \
diff --git a/src/prefs_msg_colors.c b/src/prefs_msg_colors.c
index 65f3d21..cae08f3 100644
--- a/src/prefs_msg_colors.c
+++ b/src/prefs_msg_colors.c
@@ -397,7 +397,7 @@ static void prefs_msg_colors_create_widget(PrefsPage *_page, GtkWindow *window,
 		gtk_box_pack_start(GTK_BOX (vbox_custom_colors2), hbox_custom_color[c],
 				   FALSE, TRUE, 0);
 
-		color_buttons.custom_color[c] = GTKUT_COLOR_BUTTON();
+		color_buttons.custom_color[c] = gtk_button_new_with_label("");
 		gtk_widget_show(color_buttons.custom_color[c]);
   		gtk_box_pack_start(GTK_BOX (hbox_custom_color[c]), color_buttons.custom_color[c],
 				   FALSE, FALSE, 0);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list