diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-12-28 04:09:18 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-28 04:09:18 +0000 |
commit | c63a3dccab99bf2f43d116a46c211a4fe35ef4b6 (patch) | |
tree | b59e2cd66c9f4c869d59e9419d612cf0386fb527 /gtk/gtkbindings.h | |
parent | c70c8cf69a4743a1756d8c6c0066d26d205e1e89 (diff) | |
download | gtk+-c63a3dccab99bf2f43d116a46c211a4fe35ef4b6.tar.gz |
Make the args a flexible array inside the struct, and allocate them
2005-12-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbindings.h (GtkBindingSignal):
* gtk/gtkbindings.c (binding_signal_new): Make the
args a flexible array inside the struct, and allocate them
together.
Diffstat (limited to 'gtk/gtkbindings.h')
-rw-r--r-- | gtk/gtkbindings.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/gtk/gtkbindings.h b/gtk/gtkbindings.h index 8c479f9ce0..debd6989b8 100644 --- a/gtk/gtkbindings.h +++ b/gtk/gtkbindings.h @@ -74,14 +74,6 @@ struct _GtkBindingEntry GtkBindingSignal *signals; }; -struct _GtkBindingSignal -{ - GtkBindingSignal *next; - gchar *signal_name; - guint n_args; - GtkBindingArg *args; -}; - struct _GtkBindingArg { GType arg_type; @@ -92,6 +84,13 @@ struct _GtkBindingArg } d; }; +struct _GtkBindingSignal +{ + GtkBindingSignal *next; + gchar *signal_name; + guint n_args; + GtkBindingArg args[1]; /* flexible array */ +}; /* Application-level methods */ |