summaryrefslogtreecommitdiff
path: root/gtk/gtkimcontextsimple.c
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/gtkimcontextsimple.c
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/gtkimcontextsimple.c')
-rw-r--r--gtk/gtkimcontextsimple.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index a39b7c74cc..6976f31624 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -27,7 +27,7 @@ typedef struct _GtkComposeTable GtkComposeTable;
struct _GtkComposeTable
{
- guint16 *data;
+ const guint16 *data;
gint max_seq_len;
gint n_seqs;
};
@@ -55,7 +55,7 @@ struct _GtkComposeTable
* that depend on the locale or selected input method.
*/
-static guint16 gtk_compose_seqs[] = {
+static const guint16 gtk_compose_seqs[] = {
GDK_dead_grave, GDK_space, 0, 0, 0, 0x0060, /* GRAVE_ACCENT */
GDK_dead_grave, GDK_A, 0, 0, 0, 0x00C0, /* LATIN_CAPITAL_LETTER_A_WITH_GRAVE */
GDK_dead_grave, GDK_E, 0, 0, 0, 0x00C8, /* LATIN_CAPITAL_LETTER_E_WITH_GRAVE */
@@ -832,7 +832,7 @@ static const GtkComposeTable gtk_compose_table = {
G_N_ELEMENTS (gtk_compose_seqs) / 6
};
-guint16 gtk_compose_ignore[] = {
+static const guint16 gtk_compose_ignore[] = {
GDK_Shift_L,
GDK_Shift_R,
GDK_Control_L,