diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-10-03 20:53:30 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-10-03 20:53:30 +0000 |
commit | ef33adff83617e2c937052316b9fb925d4972252 (patch) | |
tree | c6badff88c8dca205f9013043ab12c7f68db5903 /gtk/gtkimcontextsimple.c | |
parent | 6cb79658c2a64d01f6e488f065eb2d265be97414 (diff) | |
download | gtk+-ef33adff83617e2c937052316b9fb925d4972252.tar.gz |
Add a 'type' parameter, make public.
Thu Oct 3 14:13:33 2002 Owen Taylor <otaylor@redhat.com>
* gdk/gdkevents.c (gdk_event_new): Add a 'type'
parameter, make public.
* gdk/gdkevents.c (gdk_event_copy): Copy the screen.
* gdk/gdkevents.c gdk/linux-fb/gdkmain-fb.c
gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
_gdk_event_new() => gdk_event_new().
* gdk/win32/gdkevents-win32.c (real_window_procedure):
Fix event_private->screen breakage that results from evil
encapsulation breakage here.
* gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcontainer.c
gtk/gtkdialog.c gtk/gtkdnd.c gtk/gtkdrawingarea.c
gtk/gtkimcontextsimple.c gtk/gtklist.c gtk/gtkmenu.c
gtk/gtknotebook.c gtk/gtkplug.c gtk/gtkselection.c
gtk/gtktext.c gtk/gtktreeitem.c gtk/gtktreeview.c
gtk/gtkviewport.c gtk/gtkwindow-decorate.c gtk/gtkwindow.c
tests/testgtk.c: Remove most usage of stack-allocated
GdkEvent structures.
* gtk/gtktreeview.c: Use a cut-and-paste of the full
send_focus_event() from gtkwindow.c that does the necessary
notification of the ::has-focus property and setting of
the HAS_FOCUS flag.x
* gtk/gtkdnd.c: Clean up some mess/duplicated code; removing
an extraneous use of a GdkEvent.
Diffstat (limited to 'gtk/gtkimcontextsimple.c')
-rw-r--r-- | gtk/gtkimcontextsimple.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c index b4ba799667..99db9d2333 100644 --- a/gtk/gtkimcontextsimple.c +++ b/gtk/gtkimcontextsimple.c @@ -1132,10 +1132,11 @@ no_sequence_matches (GtkIMContextSimple *context_simple, for (i=0; i < n_compose - len - 1; i++) { - GdkEventKey tmp_event = *event; - tmp_event.keyval = context_simple->compose_buffer[len + i]; + GdkEventKey *tmp_event = gdk_event_copy (event); + tmp_event->keyval = context_simple->compose_buffer[len + i]; - gtk_im_context_filter_keypress (context, &tmp_event); + gtk_im_context_filter_keypress (context, tmp_event); + gdk_event_free (tmp_event); } return gtk_im_context_filter_keypress (context, event); |