[gimp] app: make "color" parameter of gimp_palettes_add_color_history() const
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: make "color" parameter of gimp_palettes_add_color_history() const
- Date: Wed, 21 Mar 2018 18:11:23 +0000 (UTC)
commit 829d44d9002878f6bd7ec84da1b3b63df257332e
Author: Michael Natterer <mitch gimp org>
Date: Wed Mar 21 19:10:55 2018 +0100
app: make "color" parameter of gimp_palettes_add_color_history() const
app/core/gimp-palettes.c | 4 ++--
app/core/gimp-palettes.h | 12 ++++++------
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/app/core/gimp-palettes.c b/app/core/gimp-palettes.c
index 52cdb39..8e80a3c 100644
--- a/app/core/gimp-palettes.c
+++ b/app/core/gimp-palettes.c
@@ -111,8 +111,8 @@ gimp_palettes_get_color_history (Gimp *gimp)
}
void
-gimp_palettes_add_color_history (Gimp *gimp,
- GimpRGB *color)
+gimp_palettes_add_color_history (Gimp *gimp,
+ const GimpRGB *color)
{
GimpPalette *history;
diff --git a/app/core/gimp-palettes.h b/app/core/gimp-palettes.h
index e789629..243b985 100644
--- a/app/core/gimp-palettes.h
+++ b/app/core/gimp-palettes.h
@@ -22,14 +22,14 @@
#define __GIMP_PALETTES__
-void gimp_palettes_init (Gimp *gimp);
+void gimp_palettes_init (Gimp *gimp);
-void gimp_palettes_load (Gimp *gimp);
-void gimp_palettes_save (Gimp *gimp);
+void gimp_palettes_load (Gimp *gimp);
+void gimp_palettes_save (Gimp *gimp);
-GimpPalette * gimp_palettes_get_color_history (Gimp *gimp);
-void gimp_palettes_add_color_history (Gimp *gimp,
- GimpRGB *color);
+GimpPalette * gimp_palettes_get_color_history (Gimp *gimp);
+void gimp_palettes_add_color_history (Gimp *gimp,
+ const GimpRGB *color);
#endif /* __GIMP_PALETTES__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]