[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-335-g499b61ef5

paul at claws-mail.org paul at claws-mail.org
Tue Oct 12 08:28:12 CET 2021


The branch, gtk3 has been updated
       via  499b61ef508c81b63a7e822bef4cb8178cfc3a5d (commit)
      from  e924500d8ad60215147f508eb91569576b923946 (commit)

Summary of changes:
 src/gtk/gtkutils.c | 14 --------------
 src/gtk/gtkutils.h |  2 --
 2 files changed, 16 deletions(-)


- Log -----------------------------------------------------------------
commit 499b61ef508c81b63a7e822bef4cb8178cfc3a5d
Author: paul <paul at claws-mail.org>
Date:   Tue Oct 12 09:28:09 2021 +0100

    remove unused gtkut_set_widget_bgcolor_rgb()

diff --git a/src/gtk/gtkutils.c b/src/gtk/gtkutils.c
index ccc72da1d..bbfb1cf92 100644
--- a/src/gtk/gtkutils.c
+++ b/src/gtk/gtkutils.c
@@ -826,20 +826,6 @@ GtkWidget *gtkut_account_menu_new(GList			*ac_list,
 	return optmenu;
 }
 
-void gtkut_set_widget_bgcolor_rgb(GtkWidget *widget, GdkRGBA rgba)
-{
-	GtkStyle *newstyle;
-	GdkColor gdk_color;
-
-	GTKUT_GDKRGBA_TO_GDKCOLOR(rgba, gdk_color);
-	newstyle = gtk_style_copy(gtk_widget_get_default_style());
-	newstyle->bg[GTK_STATE_NORMAL]   = gdk_color;
-	newstyle->bg[GTK_STATE_PRELIGHT] = gdk_color;
-	newstyle->bg[GTK_STATE_ACTIVE]   = gdk_color;
-	gtk_widget_set_style(widget, newstyle);
-	g_object_unref(newstyle);
-}
-  
 /*!
  *\brief	Tries to find a focused child using a lame strategy
  */
diff --git a/src/gtk/gtkutils.h b/src/gtk/gtkutils.h
index 0ed7440e8..8ac888d8e 100644
--- a/src/gtk/gtkutils.h
+++ b/src/gtk/gtkutils.h
@@ -159,8 +159,6 @@ GtkWidget *gtkut_account_menu_new	(GList			*ac_list,
 				  	 GCallback	 	 callback,
 					 gpointer		 data);
 
-void gtkut_set_widget_bgcolor_rgb	(GtkWidget 	*widget,
-					 GdkRGBA 		 rgbvalue);
 void gtkut_set_button_color(GtkWidget *button,
 					 GdkRGBA 		 *rgbvalue);
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list