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 /src/empathy-chat-window.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 'src/empathy-chat-window.c')
-rw-r--r-- | src/empathy-chat-window.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c index 8cdc58f79..801cf57e3 100644 --- a/src/empathy-chat-window.c +++ b/src/empathy-chat-window.c @@ -93,6 +93,7 @@ typedef struct { GtkAction *menu_edit_cut; GtkAction *menu_edit_copy; GtkAction *menu_edit_paste; + GtkAction *menu_edit_find; GtkAction *menu_tabs_next; GtkAction *menu_tabs_prev; @@ -1002,6 +1003,19 @@ chat_window_paste_activate_cb (GtkAction *action, } static void +chat_window_find_activate_cb (GtkAction *action, + EmpathyChatWindow *window) +{ + EmpathyChatWindowPriv *priv; + + g_return_if_fail (EMPATHY_IS_CHAT_WINDOW (window)); + + priv = GET_PRIV (window); + + empathy_chat_find (priv->current_chat); +} + +static void chat_window_tabs_next_activate_cb (GtkAction *action, EmpathyChatWindow *window) { @@ -1805,6 +1819,7 @@ empathy_chat_window_init (EmpathyChatWindow *window) "menu_edit_cut", &priv->menu_edit_cut, "menu_edit_copy", &priv->menu_edit_copy, "menu_edit_paste", &priv->menu_edit_paste, + "menu_edit_find", &priv->menu_edit_find, "menu_tabs_next", &priv->menu_tabs_next, "menu_tabs_prev", &priv->menu_tabs_prev, "menu_tabs_left", &priv->menu_tabs_left, @@ -1824,6 +1839,7 @@ empathy_chat_window_init (EmpathyChatWindow *window) "menu_edit_cut", "activate", chat_window_cut_activate_cb, "menu_edit_copy", "activate", chat_window_copy_activate_cb, "menu_edit_paste", "activate", chat_window_paste_activate_cb, + "menu_edit_find", "activate", chat_window_find_activate_cb, "menu_tabs_next", "activate", chat_window_tabs_next_activate_cb, "menu_tabs_prev", "activate", chat_window_tabs_previous_activate_cb, "menu_tabs_left", "activate", chat_window_tabs_left_activate_cb, |