[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-336-gc0508d11c
paul at claws-mail.org
paul at claws-mail.org
Tue Oct 12 08:37:31 CET 2021
The branch, gtk3 has been updated
via c0508d11c6797a45058742709d23d8704a24c502 (commit)
from 499b61ef508c81b63a7e822bef4cb8178cfc3a5d (commit)
Summary of changes:
src/gtk/gtkutils.c | 21 ---------------------
src/gtk/gtkutils.h | 3 ---
2 files changed, 24 deletions(-)
- Log -----------------------------------------------------------------
commit c0508d11c6797a45058742709d23d8704a24c502
Author: paul <paul at claws-mail.org>
Date: Tue Oct 12 09:37:27 2021 +0100
remove unused gtkut_set_button_color()
diff --git a/src/gtk/gtkutils.c b/src/gtk/gtkutils.c
index bbfb1cf92..02f140581 100644
--- a/src/gtk/gtkutils.c
+++ b/src/gtk/gtkutils.c
@@ -2086,24 +2086,3 @@ gchar *gtkut_gdk_rgba_to_string(GdkRGBA *rgba)
return str;
}
#undef RGBA_ELEMENT_TO_BYTE
-
-void gtkut_set_button_color(GtkWidget *button,
- GdkRGBA *rgba)
-{
- gchar *str, *markup;
- GtkWidget *label;
-
- cm_return_if_fail(button != NULL);
- cm_return_if_fail(rgba != NULL);
-
- label = gtk_bin_get_child(GTK_BIN(button));
- cm_return_if_fail(label != NULL);
-
- str = gtkut_gdk_rgba_to_string(rgba);
-
- markup = g_strdup_printf("<span bgcolor=\"%s\">" GTKUT_COLOR_BUTTON_LABEL "</span>", str);
- g_free(str);
-
- gtk_label_set_markup(GTK_LABEL(label), markup);
- g_free(markup);
-}
diff --git a/src/gtk/gtkutils.h b/src/gtk/gtkutils.h
index 8ac888d8e..08c8630ec 100644
--- a/src/gtk/gtkutils.h
+++ b/src/gtk/gtkutils.h
@@ -159,9 +159,6 @@ GtkWidget *gtkut_account_menu_new (GList *ac_list,
GCallback callback,
gpointer data);
-void gtkut_set_button_color(GtkWidget *button,
- GdkRGBA *rgbvalue);
-
void gtkut_widget_set_small_font_size(GtkWidget *widget);
GtkWidget *gtkut_get_focused_child (GtkContainer *parent);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list