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/gtklist.c | |
parent | b10825d537175d0f0c20deb07422a63f19856a66 (diff) | |
download | gtk+-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/gtklist.c')
-rw-r--r-- | gtk/gtklist.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtklist.c b/gtk/gtklist.c index 1cf4cd0237..b8d24f3e7d 100644 --- a/gtk/gtklist.c +++ b/gtk/gtklist.c @@ -2431,7 +2431,9 @@ gtk_list_move_focus_child (GtkList *list, static gint gtk_list_horizontal_timeout (GtkWidget *list) { - GdkEventMotion event = { 0 }; + GdkEventMotion event; + + memset (&event, 0, sizeof (event)); GDK_THREADS_ENTER (); @@ -2450,7 +2452,9 @@ gtk_list_horizontal_timeout (GtkWidget *list) static gint gtk_list_vertical_timeout (GtkWidget *list) { - GdkEventMotion event = { 0 }; + GdkEventMotion event; + + memset (&event, 0, sizeof (event)); GDK_THREADS_ENTER (); |