summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2020-11-11 13:40:53 -0800
committerraveit65 <[email protected]>2020-12-04 21:45:39 +0100
commit6b0fe07189c693d6b31da2063721a24959984452 (patch)
treee0fc5c6b81a4095af9b699030c8e088152b7e08c
parentfd31dea8a00a4378d83c1688095670c33c616d3e (diff)
downloadmate-panel-6b0fe07189c693d6b31da2063721a24959984452.tar.bz2
mate-panel-6b0fe07189c693d6b31da2063721a24959984452.tar.xz
Remove get_background_color() (duplicate of panel_profile_get_background_gdk_rgba())
-rw-r--r--mate-panel/panel-profile.c18
1 files changed, 1 insertions, 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);