summaryrefslogtreecommitdiff
path: root/gtk/theme-bits
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-11-13 20:23:02 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-11-13 20:23:02 +0000
commit050c933b346f5bd34ef74b5eabf7e108085aabe2 (patch)
tree6d55c9eb8b637b27604d4655a66ed0217783edcf /gtk/theme-bits
parent530fda038f20a3d69492df07de12e001ed7b7947 (diff)
downloadgtk+-050c933b346f5bd34ef74b5eabf7e108085aabe2.tar.gz
Add a const here.
* gtk/theme-bits/decompose-bits.c (do_part): Add a const here. * gtk/gtkcolorsel.c: * gtk/gtkimcontextsimple.c: * gtk/gtkstyle.c: Mark constant data as const to give the compiler a chance to put it in a readonly section. (#75754)
Diffstat (limited to 'gtk/theme-bits')
-rw-r--r--gtk/theme-bits/decompose-bits.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/theme-bits/decompose-bits.c b/gtk/theme-bits/decompose-bits.c
index 3b6cd85189..69f27a8ebe 100644
--- a/gtk/theme-bits/decompose-bits.c
+++ b/gtk/theme-bits/decompose-bits.c
@@ -46,7 +46,7 @@ do_part (GdkPixbuf *pixbuf,
color3 = pixels + part3_index * n_channels;
pixels += rowstride;
- printf ("static guchar %s_%s_bits[] = {\n", base_name, part_name);
+ printf ("static const guchar %s_%s_bits[] = {\n", base_name, part_name);
printf (" ");
while (height--)