aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r--mail/e-mail-reader.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c
index b058fda07e..b28221d5e9 100644
--- a/mail/e-mail-reader.c
+++ b/mail/e-mail-reader.c
@@ -52,6 +52,7 @@
enum {
CHANGED,
FOLDER_LOADED,
+ SHOW_SEARCH_BAR,
LAST_SIGNAL
};
@@ -265,7 +266,7 @@ static void
action_mail_find_cb (GtkAction *action,
EMailReader *reader)
{
- /* FIXME */
+ e_mail_reader_show_search_bar (reader);
}
static void
@@ -1982,6 +1983,15 @@ mail_reader_class_init (EMailReaderIface *iface)
0, NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
+
+ signals[SHOW_SEARCH_BAR] = g_signal_new (
+ "show-search-bar",
+ G_OBJECT_CLASS_TYPE (iface),
+ G_SIGNAL_RUN_FIRST | G_SIGNAL_ACTION,
+ G_STRUCT_OFFSET (EMailReaderIface, show_search_bar),
+ NULL, NULL,
+ g_cclosure_marshal_VOID__VOID,
+ G_TYPE_NONE, 0);
}
GType
@@ -2733,3 +2743,11 @@ e_mail_reader_create_charset_menu (EMailReader *reader,
gtk_ui_manager_ensure_update (ui_manager);
}
+
+void
+e_mail_reader_show_search_bar (EMailReader *reader)
+{
+ g_return_if_fail (E_IS_MAIL_READER (reader));
+
+ g_signal_emit (reader, signals[SHOW_SEARCH_BAR], 0);
+}