Commit 2ffc7479 authored by Rodrigo Moya's avatar Rodrigo Moya Committed by Rodrigo Moya
Browse files

allocate correct amount for signal and arguments.

2006-01-05  Rodrigo Moya <rodrigo@novell.com>

	* gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
	signal and arguments.
parent 8de623ac
2006-01-05 Rodrigo Moya <rodrigo@novell.com>
* gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
signal and arguments.
2006-01-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from
......
2006-01-05 Rodrigo Moya <rodrigo@novell.com>
* gtk/gtkbindings.c (binding_signal_new): allocate correct amount for
signal and arguments.
2006-01-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtklabel.c (gtk_label_grab_focus): Don't return a value from
......
......@@ -64,8 +64,8 @@ binding_signal_new (const gchar *signal_name,
guint n_args)
{
GtkBindingSignal *signal;
signal = (GtkBindingSignal *) g_slice_alloc0 (sizeof (GtkBindingSignal) + n_args * sizeof (GtkBindingArg));
signal = (GtkBindingSignal *) g_slice_alloc0 (sizeof (GtkBindingSignal) + n_args * sizeof (GtkBindingArg) - sizeof (GtkBindingArg));
signal->next = NULL;
signal->signal_name = (gchar *)g_intern_string (signal_name);
signal->n_args = n_args;
......
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