|
Karsten Hopp |
f8aa55 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
f8aa55 |
Subject: Patch 7.3.234
|
|
Karsten Hopp |
f8aa55 |
Fcc: outbox
|
|
Karsten Hopp |
f8aa55 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f8aa55 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f8aa55 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
f8aa55 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f8aa55 |
------------
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
Patch 7.3.234
|
|
Karsten Hopp |
f8aa55 |
Problem: With GTK menu may be popping down.
|
|
Karsten Hopp |
f8aa55 |
Solution: Use event time instead of GDK_CURRENT_TIME. (Hong Xu)
|
|
Karsten Hopp |
f8aa55 |
Files: src/gui.c, src/gui.h, src/gui_gtk.c, src/gui_gtk_x11.c
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
*** ../vim-7.3.233/src/gui.c 2011-06-20 00:53:10.000000000 +0200
|
|
Karsten Hopp |
f8aa55 |
--- src/gui.c 2011-06-26 04:38:09.000000000 +0200
|
|
Karsten Hopp |
f8aa55 |
***************
|
|
Karsten Hopp |
f8aa55 |
*** 84,89 ****
|
|
Karsten Hopp |
f8aa55 |
--- 84,93 ----
|
|
Karsten Hopp |
f8aa55 |
gui.starting = TRUE;
|
|
Karsten Hopp |
f8aa55 |
full_screen = FALSE;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
+ #ifdef FEAT_GUI_GTK
|
|
Karsten Hopp |
f8aa55 |
+ gui.event_time = GDK_CURRENT_TIME;
|
|
Karsten Hopp |
f8aa55 |
+ #endif
|
|
Karsten Hopp |
f8aa55 |
+
|
|
Karsten Hopp |
f8aa55 |
#ifdef MAY_FORK
|
|
Karsten Hopp |
f8aa55 |
if (!gui.dofork || vim_strchr(p_go, GO_FORG) || recursive)
|
|
Karsten Hopp |
f8aa55 |
dofork = FALSE;
|
|
Karsten Hopp |
f8aa55 |
*** ../vim-7.3.233/src/gui.h 2011-05-10 16:41:13.000000000 +0200
|
|
Karsten Hopp |
f8aa55 |
--- src/gui.h 2011-06-26 04:41:21.000000000 +0200
|
|
Karsten Hopp |
f8aa55 |
***************
|
|
Karsten Hopp |
f8aa55 |
*** 401,406 ****
|
|
Karsten Hopp |
f8aa55 |
--- 401,408 ----
|
|
Karsten Hopp |
f8aa55 |
GtkAccelGroup *accel_group;
|
|
Karsten Hopp |
f8aa55 |
GtkWidget *filedlg; /* file selection dialog */
|
|
Karsten Hopp |
f8aa55 |
char_u *browse_fname; /* file name from filedlg */
|
|
Karsten Hopp |
f8aa55 |
+
|
|
Karsten Hopp |
f8aa55 |
+ guint32 event_time;
|
|
Karsten Hopp |
f8aa55 |
#endif /* FEAT_GUI_GTK */
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
#if defined(FEAT_GUI_TABLINE) \
|
|
Karsten Hopp |
f8aa55 |
*** ../vim-7.3.233/src/gui_gtk.c 2011-01-17 20:08:03.000000000 +0100
|
|
Karsten Hopp |
f8aa55 |
--- src/gui_gtk.c 2011-06-26 04:38:09.000000000 +0200
|
|
Karsten Hopp |
f8aa55 |
***************
|
|
Karsten Hopp |
f8aa55 |
*** 1391,1397 ****
|
|
Karsten Hopp |
f8aa55 |
gtk_menu_popup(GTK_MENU(menu->submenu_id),
|
|
Karsten Hopp |
f8aa55 |
NULL, NULL,
|
|
Karsten Hopp |
f8aa55 |
(GtkMenuPositionFunc)NULL, NULL,
|
|
Karsten Hopp |
f8aa55 |
! 3U, (guint32)GDK_CURRENT_TIME);
|
|
Karsten Hopp |
f8aa55 |
}
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
/* Ugly global variable to pass "mouse_pos" flag from gui_make_popup() to
|
|
Karsten Hopp |
f8aa55 |
--- 1391,1397 ----
|
|
Karsten Hopp |
f8aa55 |
gtk_menu_popup(GTK_MENU(menu->submenu_id),
|
|
Karsten Hopp |
f8aa55 |
NULL, NULL,
|
|
Karsten Hopp |
f8aa55 |
(GtkMenuPositionFunc)NULL, NULL,
|
|
Karsten Hopp |
f8aa55 |
! 3U, gui.event_time);
|
|
Karsten Hopp |
f8aa55 |
}
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
/* Ugly global variable to pass "mouse_pos" flag from gui_make_popup() to
|
|
Karsten Hopp |
f8aa55 |
*** ../vim-7.3.233/src/gui_gtk_x11.c 2011-06-19 01:14:22.000000000 +0200
|
|
Karsten Hopp |
f8aa55 |
--- src/gui_gtk_x11.c 2011-06-26 04:39:57.000000000 +0200
|
|
Karsten Hopp |
f8aa55 |
***************
|
|
Karsten Hopp |
f8aa55 |
*** 88,95 ****
|
|
Karsten Hopp |
f8aa55 |
# include <X11/Sunkeysym.h>
|
|
Karsten Hopp |
f8aa55 |
#endif
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
- static guint32 clipboard_event_time = CurrentTime;
|
|
Karsten Hopp |
f8aa55 |
-
|
|
Karsten Hopp |
f8aa55 |
/*
|
|
Karsten Hopp |
f8aa55 |
* Easy-to-use macro for multihead support.
|
|
Karsten Hopp |
f8aa55 |
*/
|
|
Karsten Hopp |
f8aa55 |
--- 88,93 ----
|
|
Karsten Hopp |
f8aa55 |
***************
|
|
Karsten Hopp |
f8aa55 |
*** 934,940 ****
|
|
Karsten Hopp |
f8aa55 |
guint state;
|
|
Karsten Hopp |
f8aa55 |
char_u *s, *d;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
! clipboard_event_time = event->time;
|
|
Karsten Hopp |
f8aa55 |
key_sym = event->keyval;
|
|
Karsten Hopp |
f8aa55 |
state = event->state;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
--- 932,938 ----
|
|
Karsten Hopp |
f8aa55 |
guint state;
|
|
Karsten Hopp |
f8aa55 |
char_u *s, *d;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
! gui.event_time = event->time;
|
|
Karsten Hopp |
f8aa55 |
key_sym = event->keyval;
|
|
Karsten Hopp |
f8aa55 |
state = event->state;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
***************
|
|
Karsten Hopp |
f8aa55 |
*** 1129,1135 ****
|
|
Karsten Hopp |
f8aa55 |
GdkEventKey *event,
|
|
Karsten Hopp |
f8aa55 |
gpointer data UNUSED)
|
|
Karsten Hopp |
f8aa55 |
{
|
|
Karsten Hopp |
f8aa55 |
! clipboard_event_time = event->time;
|
|
Karsten Hopp |
f8aa55 |
/*
|
|
Karsten Hopp |
f8aa55 |
* GTK+ 2 input methods may do fancy stuff on key release events too.
|
|
Karsten Hopp |
f8aa55 |
* With the default IM for instance, you can enter any UCS code point
|
|
Karsten Hopp |
f8aa55 |
--- 1127,1133 ----
|
|
Karsten Hopp |
f8aa55 |
GdkEventKey *event,
|
|
Karsten Hopp |
f8aa55 |
gpointer data UNUSED)
|
|
Karsten Hopp |
f8aa55 |
{
|
|
Karsten Hopp |
f8aa55 |
! gui.event_time = event->time;
|
|
Karsten Hopp |
f8aa55 |
/*
|
|
Karsten Hopp |
f8aa55 |
* GTK+ 2 input methods may do fancy stuff on key release events too.
|
|
Karsten Hopp |
f8aa55 |
* With the default IM for instance, you can enter any UCS code point
|
|
Karsten Hopp |
f8aa55 |
***************
|
|
Karsten Hopp |
f8aa55 |
*** 1622,1628 ****
|
|
Karsten Hopp |
f8aa55 |
int x, y;
|
|
Karsten Hopp |
f8aa55 |
int_u vim_modifiers;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
! clipboard_event_time = event->time;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
/* Make sure we have focus now we've been selected */
|
|
Karsten Hopp |
f8aa55 |
if (gtk_socket_id != 0 && !GTK_WIDGET_HAS_FOCUS(widget))
|
|
Karsten Hopp |
f8aa55 |
--- 1620,1626 ----
|
|
Karsten Hopp |
f8aa55 |
int x, y;
|
|
Karsten Hopp |
f8aa55 |
int_u vim_modifiers;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
! gui.event_time = event->time;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
/* Make sure we have focus now we've been selected */
|
|
Karsten Hopp |
f8aa55 |
if (gtk_socket_id != 0 && !GTK_WIDGET_HAS_FOCUS(widget))
|
|
Karsten Hopp |
f8aa55 |
***************
|
|
Karsten Hopp |
f8aa55 |
*** 1733,1739 ****
|
|
Karsten Hopp |
f8aa55 |
int x, y;
|
|
Karsten Hopp |
f8aa55 |
int_u vim_modifiers;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
! clipboard_event_time = event->time;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
/* Remove any motion "machine gun" timers used for automatic further
|
|
Karsten Hopp |
f8aa55 |
extension of allocation areas if outside of the applications window
|
|
Karsten Hopp |
f8aa55 |
--- 1731,1737 ----
|
|
Karsten Hopp |
f8aa55 |
int x, y;
|
|
Karsten Hopp |
f8aa55 |
int_u vim_modifiers;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
! gui.event_time = event->time;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
/* Remove any motion "machine gun" timers used for automatic further
|
|
Karsten Hopp |
f8aa55 |
extension of allocation areas if outside of the applications window
|
|
Karsten Hopp |
f8aa55 |
***************
|
|
Karsten Hopp |
f8aa55 |
*** 5654,5660 ****
|
|
Karsten Hopp |
f8aa55 |
int success;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
success = gtk_selection_owner_set(gui.drawarea, cbd->gtk_sel_atom,
|
|
Karsten Hopp |
f8aa55 |
! clipboard_event_time);
|
|
Karsten Hopp |
f8aa55 |
gui_mch_update();
|
|
Karsten Hopp |
f8aa55 |
return (success) ? OK : FAIL;
|
|
Karsten Hopp |
f8aa55 |
}
|
|
Karsten Hopp |
f8aa55 |
--- 5652,5658 ----
|
|
Karsten Hopp |
f8aa55 |
int success;
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
success = gtk_selection_owner_set(gui.drawarea, cbd->gtk_sel_atom,
|
|
Karsten Hopp |
f8aa55 |
! gui.event_time);
|
|
Karsten Hopp |
f8aa55 |
gui_mch_update();
|
|
Karsten Hopp |
f8aa55 |
return (success) ? OK : FAIL;
|
|
Karsten Hopp |
f8aa55 |
}
|
|
Karsten Hopp |
f8aa55 |
*** ../vim-7.3.233/src/version.c 2011-06-26 04:25:24.000000000 +0200
|
|
Karsten Hopp |
f8aa55 |
--- src/version.c 2011-06-26 04:47:02.000000000 +0200
|
|
Karsten Hopp |
f8aa55 |
***************
|
|
Karsten Hopp |
f8aa55 |
*** 711,712 ****
|
|
Karsten Hopp |
f8aa55 |
--- 711,714 ----
|
|
Karsten Hopp |
f8aa55 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f8aa55 |
+ /**/
|
|
Karsten Hopp |
f8aa55 |
+ 234,
|
|
Karsten Hopp |
f8aa55 |
/**/
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
--
|
|
Karsten Hopp |
f8aa55 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
f8aa55 |
225. You sign up for free subscriptions for all the computer magazines
|
|
Karsten Hopp |
f8aa55 |
|
|
Karsten Hopp |
f8aa55 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f8aa55 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f8aa55 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
f8aa55 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|