diff options
author | Thomas Meire <blackskad@gmail.com> | 2010-01-20 04:29:51 +0800 |
---|---|---|
committer | Thomas Meire <blackskad@gmail.com> | 2010-01-21 08:20:08 +0800 |
commit | 0c011e92bb7f0d3d14117b0c2f6bf4b73a1a30e7 (patch) | |
tree | cc884d5104cb85f4a3cbabc3bb44e31036fa9ea2 /libempathy-gtk/empathy-chat.c | |
parent | 6e4d8ededbb01dfd7bf5bbbb31fc05d6d6ca161a (diff) | |
download | gsoc2013-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/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 17 |
1 files changed, 12 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, |