diff options
author | Tim Janik <timj@gtk.org> | 2001-02-17 06:04:40 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2001-02-17 06:04:40 +0000 |
commit | ca26902c651c7868c3e9880c0b2864d7ad42554f (patch) | |
tree | d4e8a333712e072360e7d29659d15598a752ce37 /gtk/gtkobject.c | |
parent | b10825d537175d0f0c20deb07422a63f19856a66 (diff) | |
download | gdk-pixbuf-ca26902c651c7868c3e9880c0b2864d7ad42554f.tar.gz |
default initialize the generated ENTER_NOTIFY event with 0, otherwise not
Sat Feb 17 06:47:27 2001 Tim Janik <timj@gtk.org>
* gtk/gtkmenu.c (gtk_menu_motion_notify): default initialize the
generated ENTER_NOTIFY event with 0, otherwise not explicitely
setup fields contain garbage (e.g. subwindow, breaking
gdk_drawable_ref() upon event copy).
(gtk_menu_stop_navigating_submenu_cb): same here.
* gtk/gtklist.c (gtk_list_vertical_timeout):
* gtk/gtklist.c (gtk_list_horizontal_timeout):
* gtk/gtkclist.c (vertical_timeout):
* gtk/gtkclist.c (horizontal_timeout): change direct assignment
default-zero-intialization for unions to memset(,0,), as unions are
not fully default-zero-initialized by compilers (GdkEvent x = { 0, };
has to become GdkEvent x; memset (&x, 0, sizeof (x)); )
* gtk/gtktreeview.c (gtk_tree_view_set_rows_drag_source): scratch
g_closure_sink() warning.
* gtk/gtktreemodel.c (gtk_tree_model_get_valist):
* gtk/gtktreestore.c (gtk_tree_store_set_valist):
* gtk/gtkliststore.c (gtk_list_store_set_valist):
fix G_VALUE_COLLECT() and G_VALUE_LCOPY() calls.
Diffstat (limited to 'gtk/gtkobject.c')
-rw-r--r-- | gtk/gtkobject.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkobject.c b/gtk/gtkobject.c index a6678899b..3931af9c2 100644 --- a/gtk/gtkobject.c +++ b/gtk/gtkobject.c @@ -179,10 +179,11 @@ gtk_arg_proxy_set_property (GObject *object, const gchar *trailer) { GtkObjectClass *class = g_type_class_peek (pspec->owner_type); - GtkArg arg = { 0, }; + GtkArg arg; g_return_if_fail (class->set_arg != NULL); + memset (&arg, 0, sizeof (arg)); arg.type = G_VALUE_TYPE (value); gtk_arg_set_from_value (&arg, value, FALSE); arg.name = pspec->name; @@ -197,10 +198,11 @@ gtk_arg_proxy_get_property (GObject *object, const gchar *trailer) { GtkObjectClass *class = g_type_class_peek (pspec->owner_type); - GtkArg arg = { 0, }; + GtkArg arg; g_return_if_fail (class->get_arg != NULL); + memset (&arg, 0, sizeof (arg)); arg.type = G_VALUE_TYPE (value); arg.name = pspec->name; class->get_arg (GTK_OBJECT (object), &arg, property_id); |