From 6b0fe07189c693d6b31da2063721a24959984452 Mon Sep 17 00:00:00 2001 From: William Wold Date: Wed, 11 Nov 2020 13:40:53 -0800 Subject: Remove get_background_color() (duplicate of panel_profile_get_background_gdk_rgba()) --- mate-panel/panel-profile.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c index 0401f388..883dcba6 100644 --- a/mate-panel/panel-profile.c +++ b/mate-panel/panel-profile.c @@ -493,22 +493,6 @@ panel_profile_is_writable_attached_tooltip (PanelToplevel *toplevel) return is_writable; } -static void -get_background_color (PanelToplevel *toplevel, - GdkRGBA *color) -{ - char *color_str; - color_str = g_settings_get_string (toplevel->background_settings, "color"); - if (!color_str || !gdk_rgba_parse (color, color_str)) { - color->red = 0; - color->green = 0; - color->blue = 0; - color->alpha = 1; - } - - g_free (color_str); -} - static char * get_background_image (PanelToplevel *toplevel, gboolean *fit, @@ -540,7 +524,7 @@ panel_profile_load_background (PanelToplevel *toplevel) background = &panel_widget->toplevel->background; background_type = panel_profile_get_background_type (toplevel); - get_background_color (toplevel, &color); + panel_profile_get_background_gdk_rgba (toplevel, &color); image = get_background_image (toplevel, &fit, &stretch, &rotate); -- cgit v1.2.1