summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2020-11-11 13:38:14 -0800
committerraveit65 <[email protected]>2020-12-04 21:45:39 +0100
commitfd31dea8a00a4378d83c1688095670c33c616d3e (patch)
tree3b571d1a09b744112cefa744917122279d8ebf3b
parent56917de98e853bdee7e55eaa50ebde0ab322bf12 (diff)
downloadmate-panel-fd31dea8a00a4378d83c1688095670c33c616d3e.tar.bz2
mate-panel-fd31dea8a00a4378d83c1688095670c33c616d3e.tar.xz
Drop dead panel_background_set_opacity()
-rw-r--r--mate-panel/panel-background.c20
-rw-r--r--mate-panel/panel-background.h2
2 files changed, 0 insertions, 22 deletions
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c
index 132d8921..fc74f03a 100644
--- a/mate-panel/panel-background.c
+++ b/mate-panel/panel-background.c
@@ -455,26 +455,6 @@ panel_background_set_type (PanelBackground *background,
}
static void
-panel_background_set_opacity_no_update (PanelBackground *background,
- guint16 opacity)
-{
- background->color.alpha = opacity / 65535.0;
- panel_background_update_has_alpha (background);
-}
-
-void
-panel_background_set_opacity (PanelBackground *background,
- guint16 opacity)
-{
- if (background->color.alpha == (opacity / 65535.0))
- return;
-
- free_transformed_resources (background);
- panel_background_set_opacity_no_update (background, opacity);
- panel_background_transform (background);
-}
-
-static void
panel_background_set_color_no_update (PanelBackground *background,
const GdkRGBA *color)
{
diff --git a/mate-panel/panel-background.h b/mate-panel/panel-background.h
index b39cc569..5ba81da4 100644
--- a/mate-panel/panel-background.h
+++ b/mate-panel/panel-background.h
@@ -83,8 +83,6 @@ void panel_background_set (PanelBackground *background,
gboolean rotate_image);
void panel_background_set_type (PanelBackground *background,
PanelBackgroundType type);
-void panel_background_set_opacity (PanelBackground *background,
- guint16 opacity);
void panel_background_set_color (PanelBackground *background,
const GdkRGBA *color);
void panel_background_set_image (PanelBackground *background,