diff options
author | Javier Jardón <jjardon@gnome.org> | 2011-09-30 16:31:04 +0100 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2011-10-15 16:45:16 +0100 |
commit | 0853ce3077d577a5062f224918a115a2e52803af (patch) | |
tree | 0a39d144628198ba8b7182456a03359470353f9a /gtk/gtkbindings.c | |
parent | 616afadd78c945bb7ac73ff27417b6ff5d66bd05 (diff) | |
download | gtk+-0853ce3077d577a5062f224918a115a2e52803af.tar.gz |
Use G_VALUE_INIT
Instead of an explicit { 0, } when declaring the variable.
Diffstat (limited to 'gtk/gtkbindings.c')
-rw-r--r-- | gtk/gtkbindings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkbindings.c b/gtk/gtkbindings.c index 9b2e67b4bd..5c5144cb9b 100644 --- a/gtk/gtkbindings.c +++ b/gtk/gtkbindings.c @@ -479,7 +479,7 @@ binding_compose_params (GObject *object, valid = TRUE; for (i = 1; i < query->n_params + 1 && valid; i++) { - GValue tmp_value = { 0, }; + GValue tmp_value = G_VALUE_INIT; g_value_init (params, *types); @@ -602,7 +602,7 @@ gtk_binding_entry_activate (GtkBindingEntry *entry, GSignalQuery query; guint signal_id; GValue *params = NULL; - GValue return_val = { 0, }; + GValue return_val = G_VALUE_INIT; gchar *accelerator = NULL; signal_id = g_signal_lookup (sig->signal_name, G_OBJECT_TYPE (object)); |