summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2023-11-15 15:31:00 +0100
committerLuke from DC <[email protected]>2023-11-21 20:19:58 +0000
commit1b15e2f5f6d33bd8139636a3c6f72fd07d3e5d7b (patch)
treee42f95833c9083f51f2d36ce28e7860facefa6c2
parent5da3bf92a500d5ad4dbd0835472fa0abbf1a5c2c (diff)
downloadmate-panel-1b15e2f5f6d33bd8139636a3c6f72fd07d3e5d7b.tar.bz2
mate-panel-1b15e2f5f6d33bd8139636a3c6f72fd07d3e5d7b.tar.xz
Constify a parameter
-rw-r--r--mate-panel/panel-background.c2
-rw-r--r--mate-panel/panel-background.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c
index 139a50a3..b5c475d7 100644
--- a/mate-panel/panel-background.c
+++ b/mate-panel/panel-background.c
@@ -598,7 +598,7 @@ panel_background_set (PanelBackground *background,
void
panel_background_set_default_style (PanelBackground *background,
- GdkRGBA *color,
+ const GdkRGBA *color,
cairo_pattern_t *pattern)
{
g_return_if_fail (color != NULL);
diff --git a/mate-panel/panel-background.h b/mate-panel/panel-background.h
index 9a9f5ced..8d360776 100644
--- a/mate-panel/panel-background.h
+++ b/mate-panel/panel-background.h
@@ -95,7 +95,7 @@ void panel_background_set_stretch (PanelBackground *background,
void panel_background_set_rotate (PanelBackground *background,
gboolean rotate_image);
void panel_background_set_default_style (PanelBackground *background,
- GdkRGBA *color,
+ const GdkRGBA *color,
cairo_pattern_t *pattern);
void panel_background_realized (PanelBackground *background,
GdkWindow *window);