aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorThomas Meire <blackskad@gmail.com>2010-01-20 04:29:51 +0800
committerThomas Meire <blackskad@gmail.com>2010-01-21 08:20:08 +0800
commit0c011e92bb7f0d3d14117b0c2f6bf4b73a1a30e7 (patch)
treecc884d5104cb85f4a3cbabc3bb44e31036fa9ea2 /libempathy-gtk
parent6e4d8ededbb01dfd7bf5bbbb31fc05d6d6ca161a (diff)
downloadgsoc2013-empathy-0c011e92bb7f0d3d14117b0c2f6bf4b73a1a30e7.tar
gsoc2013-empathy-0c011e92bb7f0d3d14117b0c2f6bf4b73a1a30e7.tar.gz
gsoc2013-empathy-0c011e92bb7f0d3d14117b0c2f6bf4b73a1a30e7.tar.bz2
gsoc2013-empathy-0c011e92bb7f0d3d14117b0c2f6bf4b73a1a30e7.tar.lz
gsoc2013-empathy-0c011e92bb7f0d3d14117b0c2f6bf4b73a1a30e7.tar.xz
gsoc2013-empathy-0c011e92bb7f0d3d14117b0c2f6bf4b73a1a30e7.tar.zst
gsoc2013-empathy-0c011e92bb7f0d3d14117b0c2f6bf4b73a1a30e7.zip
added a "find" menu item
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-chat.c17
-rw-r--r--libempathy-gtk/empathy-chat.h1
2 files changed, 13 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 21898993a..5c563c854 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -1371,11 +1371,6 @@ chat_input_key_press_event_cb (GtkWidget *widget,
gtk_adjustment_set_value (adj, val);
return TRUE;
}
- /* catch ctrl-f to display the search bar */
- if ((event->state & GDK_CONTROL_MASK) && (event->keyval == GDK_f)) {
- empathy_search_bar_show (EMPATHY_SEARCH_BAR (priv->search_bar));
- return TRUE;
- }
if (!(event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) &&
event->keyval == GDK_Tab) {
GtkTextBuffer *buffer;
@@ -2891,6 +2886,18 @@ empathy_chat_paste (EmpathyChat *chat)
}
void
+empathy_chat_find (EmpathyChat *chat)
+{
+ EmpathyChatPriv *priv;
+
+ g_return_if_fail (EMPATHY_IS_CHAT (chat));
+
+ priv = GET_PRIV (chat);
+
+ empathy_search_bar_show (EMPATHY_SEARCH_BAR (priv->search_bar));
+}
+
+void
empathy_chat_correct_word (EmpathyChat *chat,
GtkTextIter *start,
GtkTextIter *end,
diff --git a/libempathy-gtk/empathy-chat.h b/libempathy-gtk/empathy-chat.h
index 9e0985040..7f3ebda26 100644
--- a/libempathy-gtk/empathy-chat.h
+++ b/libempathy-gtk/empathy-chat.h
@@ -77,6 +77,7 @@ void empathy_chat_scroll_down (EmpathyChat *chat);
void empathy_chat_cut (EmpathyChat *chat);
void empathy_chat_copy (EmpathyChat *chat);
void empathy_chat_paste (EmpathyChat *chat);
+void empathy_chat_find (EmpathyChat *chat);
void empathy_chat_correct_word (EmpathyChat *chat,
GtkTextIter *start,
GtkTextIter *end,