diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-06-05 15:07:09 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-06-05 15:07:09 +0200 |
commit | b463e8d999ec812d656876f313efbeaeed663b45 (patch) | |
tree | bb1a8339a15d93724916a8600087aacc97939278 /src/mbyte.c | |
parent | 6aa8cea46d4179b2617daae034063dd0d8054e35 (diff) | |
download | vim-git-b463e8d999ec812d656876f313efbeaeed663b45.tar.gz |
patch 8.0.0620: checking for HAVE_GTK_MULTIHEAD is not neededv8.0.0620
Problem: Since we only support GTK versions that have it, the ckeck for
HAVE_GTK_MULTIHEAD is no longer needed.
Solution: Remove HAVE_GTK_MULTIHEAD. (Kazunobu Kuriyama)
Diffstat (limited to 'src/mbyte.c')
-rw-r--r-- | src/mbyte.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/mbyte.c b/src/mbyte.c index 7396a7c38..71280bdea 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -5304,17 +5304,12 @@ im_synthesize_keypress(unsigned int keyval, unsigned int state) { GdkEventKey *event; -# ifdef HAVE_GTK_MULTIHEAD event = (GdkEventKey *)gdk_event_new(GDK_KEY_PRESS); -# if GTK_CHECK_VERSION(3,0,0) +# if GTK_CHECK_VERSION(3,0,0) g_object_ref(gtk_widget_get_window(gui.drawarea)); /* unreffed by gdk_event_free() */ -# else - g_object_ref(gui.drawarea->window); /* unreffed by gdk_event_free() */ -# endif # else - event = (GdkEventKey *)g_malloc0((gulong)sizeof(GdkEvent)); - event->type = GDK_KEY_PRESS; + g_object_ref(gui.drawarea->window); /* unreffed by gdk_event_free() */ # endif # if GTK_CHECK_VERSION(3,0,0) event->window = gtk_widget_get_window(gui.drawarea); @@ -5337,11 +5332,7 @@ im_synthesize_keypress(unsigned int keyval, unsigned int state) event->send_event = FALSE; gtk_im_context_filter_keypress(xic, event); -# ifdef HAVE_GTK_MULTIHEAD gdk_event_free((GdkEvent *)event); -# else - g_free(event); -# endif } void |