summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorTim Janik <timj@src.gnome.org>1998-06-10 00:54:54 +0000
committerTim Janik <timj@src.gnome.org>1998-06-10 00:54:54 +0000
commit5ab6b7e02047527eb6492dd97cdff3e97af43f6e (patch)
tree71e318cbb0d09344cf2a568934eec2aab0224877 /gtk
parent2cabeeb1c3ec0c1a17c4c372191dbe64ce5987af (diff)
downloadgtk+-5ab6b7e02047527eb6492dd97cdff3e97af43f6e.tar.gz
more const pointer corrections.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkbindings.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c
index 5f3d5bab34..be3ddc87aa 100644
--- a/gtk/gtkbindings.c
+++ b/gtk/gtkbindings.c
@@ -70,9 +70,9 @@ binding_signal_free (GtkBindingSignal *sig)
}
static guint
-binding_entry_hash (gpointer key)
+binding_entry_hash (g_const_pointer key)
{
- register GtkBindingEntry *e = key;
+ register const GtkBindingEntry *e = key;
register guint h;
h = e->keyval;
@@ -82,11 +82,11 @@ binding_entry_hash (gpointer key)
}
static gint
-binding_entries_compare (gpointer a,
- gpointer b)
+binding_entries_compare (g_const_pointer a,
+ g_const_pointer b)
{
- register GtkBindingEntry *ea = a;
- register GtkBindingEntry *eb = b;
+ register const GtkBindingEntry *ea = a;
+ register const GtkBindingEntry *eb = b;
return (ea->keyval == eb->keyval && ea->modifiers == eb->modifiers);
}
@@ -762,11 +762,11 @@ binding_match_activate (GSList *pspec_list,
}
static gint
-gtk_binding_pattern_compare (gpointer a,
- gpointer b)
+gtk_binding_pattern_compare (g_const_pointer a,
+ g_const_pointer b)
{
- register GtkPatternSpec *pa = a;
- register GtkPatternSpec *pb = b;
+ register const GtkPatternSpec *pa = a;
+ register const GtkPatternSpec *pb = b;
return pa->seq_id < pb->seq_id ? -1 : 1;
}