summaryrefslogtreecommitdiff
path: root/src/gui/gtk/gui-gtk-mouse.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-07-26 18:50:29 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-07-26 18:50:29 +0200
commite0781f0390291e264e6dd9c17beae1342e87f9a2 (patch)
treeaac2f19ab7e527180952db15867d8daaa23c4a91 /src/gui/gtk/gui-gtk-mouse.c
parent2fec84314433c2b7152c6c47b1172a621257fe6f (diff)
downloadweechat-e0781f0390291e264e6dd9c17beae1342e87f9a2.zip
core: add mouse support (task #5435), free cursor movement, hook_focus, fix bugs with key "^" (bug #32072, bug #21381), fix bugs with bar windows, completion and /buffer
New features and bugs fixed: - mouse support: new command /mouse, new option weechat.look.mouse, new key context "mouse" - free movement of cursor: new command /cursor, new key context "cursor" - new hook_focus (used by cursor and mouse) - info "cursor_mode" - bugs fixed with key "^" - allow plugin name in /buffer name - fix bugs with bar windows: do not create bar windows for hidden bars - fix completion bug when two words for completion are equal but with different case - automatic scroll direction in /bar scroll (x/y is now optional)
Diffstat (limited to 'src/gui/gtk/gui-gtk-mouse.c')
-rw-r--r--src/gui/gtk/gui-gtk-mouse.c94
1 files changed, 94 insertions, 0 deletions
diff --git a/src/gui/gtk/gui-gtk-mouse.c b/src/gui/gtk/gui-gtk-mouse.c
new file mode 100644
index 000000000..8d7533d8d
--- /dev/null
+++ b/src/gui/gtk/gui-gtk-mouse.c
@@ -0,0 +1,94 @@
+/*
+ * Copyright (C) 2011 Sebastien Helleu <flashcode@flashtux.org>
+ *
+ * This file is part of WeeChat, the extensible chat client.
+ *
+ * WeeChat is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * WeeChat is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/*
+ * gui-gtk-mouse.c: mouse functions for Gtk GUI
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "../../core/weechat.h"
+#include "../gui-mouse.h"
+
+
+/*
+ * gui_mouse_enable: enable mouse
+ */
+
+void
+gui_mouse_enable ()
+{
+ /* This function does nothing in Gtk GUI */
+}
+
+/*
+ * gui_mouse_disable: disable mouse
+ */
+
+void
+gui_mouse_disable ()
+{
+ /* This function does nothing in Gtk GUI */
+}
+
+/*
+ * gui_mouse_display_state: display state of mouse
+ */
+
+void
+gui_mouse_display_state ()
+{
+ /* This function does nothing in Gtk GUI */
+}
+
+/*
+ * gui_mouse_grab_init: init "grab mouse" mode
+ */
+
+void
+gui_mouse_grab_init ()
+{
+ /* This function does nothing in Gtk GUI */
+}
+
+/*
+ * gui_mouse_grab_code2key: get key name with a mouse code
+ */
+
+const char *
+gui_mouse_grab_code2key (const char *code)
+{
+ (void) code;
+
+ /* This function does nothing in Gtk GUI */
+
+ return NULL;
+}
+
+/*
+ * gui_mouse_grab_end: end "grab mouse" mode
+ */
+
+void
+gui_mouse_grab_end ()
+{
+ /* This function does nothing in Gtk GUI */
+}