type to GDK_NOTHING so valgrind does not complain.
Fixes: debbugs:9901
2011-10-30 Jan Djärv <jan.h.d@swipnet.se>
+ * gtkutil.c (xg_win_to_widget, xg_event_is_for_menubar): Initialize
+ type to GDK_NOTHING so valgrind does not complain (Bug#9901).
+
* xterm.h (x_display_info): Add Xatom_net_wm_state_hidden (Bug#9893).
* xterm.c: Declare x_handle_net_wm_state to return int.
{
GdkEvent event;
event.any.window = gdkwin;
+ event.any.type = GDK_NOTHING;
gwdesc = gtk_get_event_widget (&event);
}
gw = gdk_x11_window_lookup_for_display (gdpy, event->xbutton.window);
if (! gw) return 0;
gevent.any.window = gw;
+ gevent.any.type = GDK_NOTHING;
gwdesc = gtk_get_event_widget (&gevent);
if (! gwdesc) return 0;
if (! GTK_IS_MENU_BAR (gwdesc)