summaryrefslogtreecommitdiff
path: root/src/gui/gtk
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-07-05 15:36:42 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-07-05 15:36:42 +0200
commit3bea55b2f0759541b0d8930396eb4fc1f7d62ecc (patch)
tree08d5886e45a114e02e7a8aa9b30708466d102970 /src/gui/gtk
parent5250b68d0a1d9871b9d89ff1253290372a747cf6 (diff)
downloadweechat-3bea55b2f0759541b0d8930396eb4fc1f7d62ecc.zip
core: add context "search" for keys (to define keys used during search in buffer with ctrl+"r")
Diffstat (limited to 'src/gui/gtk')
-rw-r--r--src/gui/gtk/CMakeLists.txt2
-rw-r--r--src/gui/gtk/Makefile.am2
-rw-r--r--src/gui/gtk/gui-gtk-key.c (renamed from src/gui/gtk/gui-gtk-keyboard.c)11
-rw-r--r--src/gui/gtk/gui-gtk.h8
4 files changed, 12 insertions, 11 deletions
diff --git a/src/gui/gtk/CMakeLists.txt b/src/gui/gtk/CMakeLists.txt
index 817c3e715..d40e6b6f6 100644
--- a/src/gui/gtk/CMakeLists.txt
+++ b/src/gui/gtk/CMakeLists.txt
@@ -23,7 +23,7 @@ gui-gtk.h
gui-gtk-bar-window.c
gui-gtk-chat.c
gui-gtk-color.c
-gui-gtk-keyboard.c
+gui-gtk-key.c
gui-gtk-main.c
gui-gtk-term.c
gui-gtk-window.c)
diff --git a/src/gui/gtk/Makefile.am b/src/gui/gtk/Makefile.am
index 4bd2fa16c..6f84e647f 100644
--- a/src/gui/gtk/Makefile.am
+++ b/src/gui/gtk/Makefile.am
@@ -35,7 +35,7 @@ weechat_gtk_LDADD = ./../../core/lib_weechat_core.a \
weechat_gtk_SOURCES = gui-gtk-bar-window.c \
gui-gtk-chat.c \
gui-gtk-color.c \
- gui-gtk-keyboard.c \
+ gui-gtk-key.c \
gui-gtk-main.c \
gui-gtk-term.c \
gui-gtk-window.c \
diff --git a/src/gui/gtk/gui-gtk-keyboard.c b/src/gui/gtk/gui-gtk-key.c
index bf3a9db5b..5fc5b5887 100644
--- a/src/gui/gtk/gui-gtk-keyboard.c
+++ b/src/gui/gtk/gui-gtk-key.c
@@ -31,27 +31,28 @@
#include "../../core/weechat.h"
#include "../../core/wee-utf8.h"
#include "../../plugins/plugin.h"
-#include "../gui-keyboard.h"
+#include "../gui-key.h"
#include "../gui-buffer.h"
#include "gui-gtk.h"
/*
- * gui_keyboard_default_bindings: create default key bindings
+ * gui_key_default_bindings: create default key bindings
*/
void
-gui_keyboard_default_bindings ()
+gui_key_default_bindings (int context)
{
/* TODO: write this function for Gtk */
+ (void) context;
}
/*
- * gui_keyboard_read: read keyboard chars
+ * gui_key_read: read keyboard chars
*/
void
-gui_keyboard_read ()
+gui_key_read ()
{
/* TODO: write this function for Gtk */
}
diff --git a/src/gui/gtk/gui-gtk.h b/src/gui/gtk/gui-gtk.h
index fac1eb00a..69cd4daa3 100644
--- a/src/gui/gtk/gui-gtk.h
+++ b/src/gui/gtk/gui-gtk.h
@@ -98,10 +98,10 @@ extern void gui_chat_calculate_line_diff (struct t_gui_window *window,
struct t_gui_line **line,
int *line_pos, int difference);
-/* keyboard functions */
-extern void gui_keyboard_default_bindings ();
-extern void gui_keyboard_read ();
-extern void gui_keyboard_flush ();
+/* key functions */
+extern void gui_key_default_bindings (int context);
+extern void gui_key_read ();
+extern void gui_key_flush ();
/* window functions */
extern void gui_window_redraw_buffer (struct t_gui_buffer *buffer);