Mercurial > emacs
comparison src/gtkutil.c @ 51569:e7bd8581e306
(xg_tool_bar_callback): Don't pass uninitialized
data to kbd_buffer_store_event.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Sun, 15 Jun 2003 20:56:40 +0000 |
parents | 6db55492aca9 |
children | c150d4a7aa36 |
comparison
equal
deleted
inserted
replaced
51568:5dc40bf1e32a | 51569:e7bd8581e306 |
---|---|
2816 { | 2816 { |
2817 int idx = (int)client_data; | 2817 int idx = (int)client_data; |
2818 FRAME_PTR f = (FRAME_PTR) g_object_get_data (G_OBJECT (w), XG_FRAME_DATA); | 2818 FRAME_PTR f = (FRAME_PTR) g_object_get_data (G_OBJECT (w), XG_FRAME_DATA); |
2819 Lisp_Object key, frame; | 2819 Lisp_Object key, frame; |
2820 struct input_event event; | 2820 struct input_event event; |
2821 EVENT_INIT (event); | |
2821 | 2822 |
2822 if (! f || ! f->n_tool_bar_items || NILP (f->tool_bar_items)) | 2823 if (! f || ! f->n_tool_bar_items || NILP (f->tool_bar_items)) |
2823 return; | 2824 return; |
2824 | 2825 |
2825 idx *= TOOL_BAR_ITEM_NSLOTS; | 2826 idx *= TOOL_BAR_ITEM_NSLOTS; |