aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
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 'src')
-rw-r--r--src/empathy-chat-window.c16
-rw-r--r--src/empathy-chat-window.ui9
2 files changed, 25 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,
diff --git a/src/empathy-chat-window.ui b/src/empathy-chat-window.ui
index c2b56251c..4ba3502f2 100644
--- a/src/empathy-chat-window.ui
+++ b/src/empathy-chat-window.ui
@@ -85,6 +85,13 @@
<accelerator key="V" modifiers="GDK_CONTROL_MASK"/>
</child>
<child>
+ <object class="GtkAction" id="menu_edit_find">
+ <property name="stock_id">gtk-find</property>
+ <property name="name">menu_edit_find</property>
+ </object>
+ <accelerator key="F" modifiers="GDK_CONTROL_MASK"/>
+ </child>
+ <child>
<object class="GtkAction" id="menu_tabs">
<property name="name">menu_tabs</property>
<property name="label" translatable="yes">_Tabs</property>
@@ -160,6 +167,8 @@
<menuitem action="menu_edit_cut"/>
<menuitem action="menu_edit_copy"/>
<menuitem action="menu_edit_paste"/>
+ <separator/>
+ <menuitem action="menu_edit_find"/>
</menu>
<menu action="menu_tabs">
<menuitem action="menu_tabs_prev"/>