Commit 5ab6b7e0 authored by Tim Janik's avatar Tim Janik
Browse files

more const pointer corrections.

parent 2cabeeb1
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment