aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-07-04 03:08:03 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-07-04 03:08:03 +0800
commit2a1f72d4008b5ad48129846f689d30b63450b9f9 (patch)
treeca8a6172bb540295e71011647bcd342033831b4c /mail/mail-send-recv.c
parent24c422f89dcba8b085bc15ea6e3230d85472f4e9 (diff)
downloadgsoc2013-evolution-2a1f72d4008b5ad48129846f689d30b63450b9f9.tar.gz
gsoc2013-evolution-2a1f72d4008b5ad48129846f689d30b63450b9f9.tar.zst
gsoc2013-evolution-2a1f72d4008b5ad48129846f689d30b63450b9f9.zip
** Added the hook for plugging into Send/Receive dialog for the
Evolution RSS plugin. svn path=/trunk/; revision=33749
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index dbaee11c61..c7fa00655f 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -56,6 +56,7 @@
#include "mail-ops.h"
#include "mail-send-recv.h"
#include "mail-folder-cache.h"
+#include "em-event.h"
#include <e-util/e-icon-factory.h>
#define d(x)
@@ -381,7 +382,8 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati
EAccount *account;
EIterator *iter;
GList *icon_list;
-
+ EMEventTargetSendReceive *target;
+
gd = (GtkDialog *)(send_recv_dialog = gtk_dialog_new_with_buttons(_("Send & Receive Mail"), NULL, GTK_DIALOG_NO_SEPARATOR, NULL));
gtk_window_set_modal ((GtkWindow *) gd, FALSE);
@@ -535,6 +537,10 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati
g_object_unref (iter);
+ /* Hook: If some one wants to hook on to the sendreceive dialog, this is the way to go. */
+ target = em_event_target_new_send_receive (em_event_peek(), table, data, row, EM_EVENT_SEND_RECEIVE);
+ e_event_emit (em_event_peek(), "mail.sendreceive", target);
+
if (outbox && destination) {
info = g_hash_table_lookup (data->active, SEND_URI_KEY);
if (info == NULL) {
@@ -936,7 +942,9 @@ mail_send_receive (void)
mail_get_store(info->uri, info->cancel, receive_update_got_store, info);
break;
default:
- g_assert_not_reached ();
+ /* Commented for pluggable hooks*/
+ /* g_assert_not_reached () */
+ break;
}
scan = scan->next;
}