diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-11-13 20:23:02 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-11-13 20:23:02 +0000 |
commit | 050c933b346f5bd34ef74b5eabf7e108085aabe2 (patch) | |
tree | 6d55c9eb8b637b27604d4655a66ed0217783edcf /gtk/theme-bits | |
parent | 530fda038f20a3d69492df07de12e001ed7b7947 (diff) | |
download | gtk+-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.c | 2 |
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--) |