summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-27 00:00:52 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-27 00:00:52 +0000
commit1cad2925030b60643dfa9bf441da146ec6e7c014 (patch)
tree8a5c7273fac70d13028b9202a5926f66bd4a6aa4
parenta226a6dd9f63c28ab6d82cf895f69d3daad98801 (diff)
updated for version 7.0208
-rw-r--r--src/gui.c22
-rw-r--r--src/gui.h2
2 files changed, 22 insertions, 2 deletions
diff --git a/src/gui.c b/src/gui.c
index b3d57db2e6..88d97a326a 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -3420,6 +3420,28 @@ get_tabline_label(tp)
}
}
+/*
+ * Send the event for clicking to select tab page "nr".
+ * Returns TRUE if it was done, FALSE when skipped because we are already at
+ * that tab page.
+ */
+ int
+send_tabline_event(nr)
+ int nr;
+{
+ char_u string[3];
+
+ if (nr == tabpage_index(curtab))
+ return FALSE;
+ string[0] = CSI;
+ string[1] = KS_TABLINE;
+ string[2] = KE_FILLER;
+ add_to_input_buf(string, 3);
+ string[0] = nr;
+ add_to_input_buf_csi(string, 1);
+ return TRUE;
+}
+
#endif
/*
diff --git a/src/gui.h b/src/gui.h
index f1a9e64046..90047c38fc 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -8,12 +8,10 @@
*/
#ifdef FEAT_GUI_MOTIF
-# define FEAT_GUI_X11
# include <Xm/Xm.h>
#endif
#ifdef FEAT_GUI_ATHENA
-# define FEAT_GUI_X11
# include <X11/Intrinsic.h>
# include <X11/StringDefs.h>
#endif